vim-flavored-markdown
vim-flavored-markdown copied to clipboard
Disable underscore in latex block?
Usually underscores may occur in a latex block. For example, $\sum_{i=1}^{n}{f(x)}$. I can get the right result in pdf via pandoc, but in vim, the content after underscore are still recognized as emphasized part. So vim still highlight them, which bothers me a lot. Is there a way that just disable markdown underscores in latex blocks? If so, that would be very helpful!
I completely agree, @shenfei - it's been driving me a bit nuts.
An imperfect fix can be attained by commenting out this line:
https://github.com/jtratner/vim-flavored-markdown/blob/master/syntax/ghmarkdown.vim#L70
in your local syntax file. I never felt the need for highlighting italicized text anyway.
+1
+1