sublime-markdown-extended icon indicating copy to clipboard operation
sublime-markdown-extended copied to clipboard

[For the record] LaTeX highlight issues

Open randy3k opened this issue 9 years ago • 1 comments

As the built-in LaTeX syntax contains $top_level_main (or the old $base), it is impossible to embedded it perfectly, see

https://github.com/jonschlinkert/sublime-markdown-extended/issues/49 https://github.com/sekogan/MarkdownLight/issues/2 https://github.com/textmate/textmate/pull/1276

Therefore I hacked the LaTeX syntax by forcibly matching some of the latex elements and prevent them being matched inside the scope of LaTeX. The hack is not beautiful and prefect, but it works in most cases.

For the full solution, rewriting the built-in LaTeX syntax is an option. One could also use other LaTeX syntaxes, for example, LaTeX-Plus syntax by me.

randy3k avatar Feb 15 '16 06:02 randy3k

Any update on this issue?

I am using Markdown-extended a lot, and it would help to have a good highlighting on inlined LaTeX code in Markdown files.

Example: first in Markdown, then in LaTeX :

Example: and so $x = y^3$
Example: and so $x = y^3$

Naereen avatar Nov 08 '16 12:11 Naereen