This is a good question. I’ve noticed the same thing. Actually I believe this is not the only problem with the syntax highlighter.
Afaik the highlighter should determine the code and use the proper highlighting syntax. IMO the fallback should be plain text w/o highlighting, but this is apparently not the case or not working.
The problem is that not even
works. It still highlights something.
I was trying to go through the code, but I couldn’t find the culprit.
Yes, i was actually going to post a bug ticket about this, ```text should work , and the default should be plaintext, before i knew how to set the language for markdown code blocks my notes from copying and pasting random stuff is colorful from it trying and failing to parse it
github apparently uses this yaml file (i think you need to pay attention to the ace_mode field) for what they support: