Skip to content

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

Description

@mikkovedru

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions