jonschlinkert / sublime-markdown-extended

Top 100 Sublime Text plugin! Markdown syntax highlighter for Sublime Text, with extended support for GFM fenced code blocks, with language-specific syntax highlighting. YAML Front Matter. Works with ST2/ST3. Goes great with Assemble.
https://github.com/jonschlinkert
MIT License
659 stars 96 forks source link

Ignore syntax highlighting inside dollar signs #69

Closed tehrengruber closed 9 years ago

tehrengruber commented 9 years ago

When writing Markdown with Mathjax content you often use single underscores inside dollar signs like

Some text
...
$\int_a^b f(x) dx$
...

It would be very nice if the syntax highlighter would recognize this since otherwise your whole content looks kinda wierd. As there is no standard format for defining equations in markdown syntax (at least what i know) i would be desirable that this would be configurable in the settings of the plugin. This is most likely a feature request and not a bug but since i'm not capable of changing this i would really appreciate it if someone could implement/fix this :-)

jonschlinkert commented 9 years ago

yeah, this isn't a bug. like you said it's more of a feature request, but I don't think it this plugin would/could support that. the highlighting in the fenced code blocks is provided by the highlighters for the respective languages defined for the code blocks.

Forst commented 9 years ago

Why not make dollar signs be similar to code blocks, enabling TeX/LaTeX highlighting? Would that be possible?