HyperMD icon indicating copy to clipboard operation
HyperMD copied to clipboard

Hypermd syntax highlighter stops working inside a code block (Obsidian's Admonition-plugin, CodeMirror)

Open mikkovedru opened this issue 4 years ago • 1 comments

The bug was originally reported here in the Obsidian's Admonition-plugin repo, but then became clear that the bug is not in the plugin, nor is it at the CodeMirror end.

Copy of the original bug report (please check for more comments):

How to reproduce the bug

  1. Add 3 test lines inside the admonition: image
  2. Use Obsidian/markdown quote feature(>) on the second line. BUG: Notice that syntax highlighter stopped working on all the lines even below the quoted one. image

Other interesting detail

Putting a code block returns highlighting back to normal. image

Versions

  • Obsidian 0.12.10
  • Admonition 6.2.2

mikkovedru avatar Sep 10 '21 15:09 mikkovedru

Specifically, the Obsidian Admonition plugin just extends the hypermd language mode. This issue occurs in a codeblock set to that language.

valentine195 avatar Sep 10 '21 15:09 valentine195