Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikkovedru opened this issue Sep 10, 2021 · 1 comment

Comments

@mikkovedru
Copy link

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

@valentine195
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants