Open artistl opened 4 weeks ago
How can I syntax highlight everything between dollar signs (for latex math)?
You would have to add a replacement to the inlineGrammar object, similar to the code one here: https://github.com/jefago/tiny-markdown-editor/blob/2bb78a83ea1fabf386e0c767261d8b7f63aa90c7/src/grammar.js#L140-L143
inlineGrammar
code
How can I syntax highlight everything between dollar signs (for latex math)?