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

angle brackets trigger highlighting outside of code block #37

Open seanwbarry opened 2 years ago

seanwbarry commented 2 years ago

I like to use angle brackets in my writing from time to time.

image

Unfortunately, I cannot do this anymore, as they are automatically recognised as a code block.

I am unsure how to stop this behaviour.

Desired behaviour: only show highlighting when in code block (triple ticks code here)

samipfjo commented 2 years ago

As a workaround you can use &lt; and &gt; for < and > respectively