cm-editor-syntax-highlight-obsidian
cm-editor-syntax-highlight-obsidian copied to clipboard
any chance of mermaid code highlighting?
AFAIK there's no official syntax highlighting for mermaid? but could one be invented so we can highlight those code chunks ? 😅
References for the future: https://codemirror.net/doc/manual.html#modeapi https://codemirror.net/demo/simplemode.html
I think this is what is used for the Mermaid Live Editor (it uses monaco though, not CodeMirror): https://github.com/mermaid-js/mermaid-live-editor/blob/master/src/mermaid-language/mermaid.js
mermaid highlights would be so nice, if anyone has the time and know how to create one.