I am writing documentation in markdown using ViM, and also adding math using the latex $$ symbol (compiling with pandoc). The fact is that ViM syntax will not ignore underscores _ inside dollar characters, and this is pretty annoying. For example, if I write this:
$$ a_1 = 0 $$
Then Vim will highlight all subsequent texts in italics due to the underline used.
How to change this?
It would also be nice if I could highlight what's inside $ with a different format.
sharp source share