preservim / vim-markdown

Markdown Vim Mode
4.69k stars 524 forks source link

[Bug] Italic and bold formatting immediately following "(" displays as normal text #550

Closed brianrobt closed 4 months ago

brianrobt commented 3 years ago

Given the following Markdown:

This is an article (*some italic*) that has (**some bold**) some formatting bugs.

When rendering in Vim, italic-formatted and bold-formatted text are usually shown as italic or bold. However, when the formatting immediately follows an open parentheses, they render unformatted. If there is unformatted text immediately following the open parentheses followed by bold or italic text, then it renders properly, e.g.:

This is an article (with *properly* formatted **text**).

Here is my complete .vimrc file with the vim-markdown settings at the bottom:

call plug#begin('~/.vim/plugged')

  " Common vim settings.
  Plug 'tpope/vim-sensible'

  " A Git plugin for Vim.
  Plug 'tpope/vim-fugitive'

  " A visual Git plugin to see what has changed in each file.
  Plug 'airblade/vim-gitgutter'

  " Syntax highlighting.
  Plug 'scrooloose/syntastic'

  " Visual plugin to show things such as the Vim mode.
  Plug 'vim-airline/vim-airline'

  " Prettier formatter.
  Plug 'prettier/vim-prettier'

  " Colorful rainbow bracket matching.
  Plug 'luochen1990/rainbow'

  " Monokai color scheme.
  Plug 'crusoexia/vim-monokai'

  " Collection of vim color schemes.
  Plug 'rafi/awesome-vim-colorschemes'

  " A color scheme based on monokai.
  Plug 'tomasr/molokai'

  " Markdown plugin.
  Plug 'godlygeek/tabular'
  Plug 'plasticboy/vim-markdown'

  " tmux plugin.
  Plug 'tmux-plugins/vim-tmux'

  Plug 'junegunn/fzf', { 'do': { ->fzf#install() } }
call plug#end()

" Enable syntax highlighting.
syntax on

" Set the "pyte" color scheme.
colorscheme molokai

" Turn on line numbers.
set number

" Enable intelligent indentation.
set autoindent
set smartindent

" Set backspace for certain characters.
set backspace=indent,eol,start

" Set textwidth to be 72 and visual ruler to be +1 from that.
set textwidth=72
set cc=+1

" Use spaces instead of tabs.
set tabstop=2
set shiftwidth=2
set expandtab
set smarttab
" set breakindent

" Show whitespace chars.
set list
set listchars=eol:$,tab:>-,trail:~

" vim-markdown settings.

" Disable folding.
let g:vim_markdown_folding_disabled = 1
" Disable concealing.
let g:vim_markdown_conceal = 0
let g:tex_conceal = ""
let g:vim_markdown_math = 1
let g:vim_markdown_conceal_code_blocks = 0
" Fix indentation.
let g:vim_markdown_new_list_item_indent = 0
" Follow anchors.
let g:vim_markdown_follow_anchor = 1
" Do not automatically insert bullet points.
let g:vim_markdown_auto_insert_bullets = 0