Wrapping Markdown in a <div> breaks syntax highlighting in editor #3691
Unanswered
RobertBeekman
asked this question in
Error / Bug Report
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
If you put your markdown inside a div, it renders correctly on the page and in the preview, but the editor's syntax highlighting stops working
To Reproduce
Steps to reproduce the behavior:
<div>
and</div>
Expected behavior
Syntax highlighting inside the div should remain functional, or Markdown inside the div shouldn't be rendered on the preview and the resulting page either (less desirable I'd imagine).
Screenshots
Syntax highlighting works without the divs:
Wrapping divs breaks the syntax highlighting:
Host Info (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions