diff --git a/doc/pandoc-syntax.txt b/doc/pandoc-syntax.txt index 1c9842b..2d2d3ae 100644 --- a/doc/pandoc-syntax.txt +++ b/doc/pandoc-syntax.txt @@ -39,6 +39,7 @@ CONFIGURATION *vim-pandoc-syntax-configuration* - quotes - inlinecode - inlinemath + - inlinemathdollar To review what are the rules for, look for the call to |s:WithConceal| in syntax/pandoc.vim that takes the corresponding rulename as first argument. diff --git a/syntax/pandoc.vim b/syntax/pandoc.vim index 90caeb3..23c1ad0 100644 --- a/syntax/pandoc.vim +++ b/syntax/pandoc.vim @@ -261,12 +261,15 @@ call s:WithConceal('html_c_e', 'syn match pandocHTMLCommentEnd /-->/ contained', " Unset current_syntax so the 2nd include will work unlet b:current_syntax syn include @LATEX syntax/tex.vim -if index(g:pandoc#syntax#conceal#blacklist, 'inlinemath') == -1 - " Can't use WithConceal here because it will mess up all other conceals - " when dollar signs are used normally. It must be skipped entirely if - " inlinemath is blacklisted +" Can't use WithConceal here because it will mess up all other conceals +" when dollar signs are used normally. It must be skipped entirely if +" inlinemath is blacklisted +if index(g:pandoc#syntax#conceal#blacklist, 'inlinemath') == -1 && + \ index(g:pandoc#syntax#conceal#blacklist, 'inlinemathdollar') == -1 syn region pandocLaTeXInlineMath start=/\v\\@