deathau / cm-editor-syntax-highlight-obsidian

A plugin for [Obsidian](https://obsidian.md) which allows syntax highlighting for code blocks in the editor.
486 stars 37 forks source link

Putting JSP (Java Server Pages) Code Breaks Note #74

Open clavzno opened 11 months ago

clavzno commented 11 months ago

In relation to issue #60, putting JSP into a code block gives you a "CodeMirror.multiplexingMode is not a function" error and won't allow you to load the note.

The note contents are intact, though. Simply disable the plugin.

Steps to recreate, assuming the plugin is enabled:

  1. Create any note with regular content or without content
  2. Create a code block using ```jsp
  3. Reopen Obsidian
  4. It should show errors on the top right saying the error above and the notes cannot be loaded

I tested these with JSP code blocks with HTML only, imports, "<%%>" etc. but the error occurs even with an empty code block.