deathau / cm-editor-syntax-highlight-obsidian

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

using codetype "aspx" breaks your note #60

Open Th3m00se opened 2 years ago

Th3m00se commented 2 years ago

Simply put, I ran across an error today when I tried to open Obsidian. "Failed to load . CodeMirror.multiplexingMode is not a function".

I was able to open the note in an external text editor and tried piecing things back together and found that the page broke when I used "aspx" as a syntax highlighting block. if I edit the .md manually and remove "aspx" from the note it loads normally in Obsidian.

Steps to recreate:

  1. start a new note
  2. create a code block with ```. (code text doesn't really matter).
  3. Close obsidian and reopen. note should be fine.
  4. add aspx to the code block heading for highlighting
  5. close Obsidian and reopen. error should pop up and nothing in the note is opened.