mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00

Previously, if CodeMirror doesn't support a mode explicitly the mode wouldn't be updated on refresh. This means editors like Mermaid would get their mode "inherited" from the previous mode you had open. Now the mode is set to text/plain if CodeMirror doesn't support the note's MIME type. P.S. some of the mermaid diagrams in the demo data have their MIME type incorrectly set to text/plain rather than text/mermaid, so it doesn't reproduce on all diagrams in the demo data.