Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions syntax/pandoc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ call s:WithConceal('html_c_e', 'syn match pandocHTMLCommentEnd /-->/ contained',
unlet b:current_syntax
syn include @LATEX syntax/tex.vim
syn region pandocLaTeXInlineMath start=/\\\@<!\$[[:graph:]]\@=/ end=/\\\@<!\$/ keepend contains=@LATEX
syn region pandocLaTeXInlineMath start=/\\\@<!\\([[:graph:]]\@=/ end=/\\\@<!\\)/ keepend contains=@LATEX
syn match pandocProtectedFromInlineLaTeX /\\\@<!\${.*}\(\(\s\|[[:punct:]]\)\([^$]*\|.*\(\\\$.*\)\{2}\)\n\n\|$\)\@=/ display
" contains=@LATEX
syn region pandocLaTeXMathBlock start=/\$\$/ end=/\$\$/ keepend contains=@LATEX
Expand Down
1 change: 1 addition & 0 deletions tests/latex.pdc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
This is a paragraph with $\text{inline} \LaTeX$.
This is a paragraph with \(\text{inline} \LaTeX\) using the tex_math_single_backslash extension.

This \$ is a dollar sign. $ this too. $30000 dollars are mentioned in pandoc's
Example. I don't have that amount.
Expand Down