HTML following between two comments don't get recognized as HTML #1032
Labels
category: mixed content
L2 - annoying
Similar to L1 - broken but there is a known workaround available for the issue
Projects
Expectation
Result
What was attempted
As shown above, HTML code between two comments are identified as
paragraph
s instead ofhtml
. Inserting blank lines between the comments and the HTML code in markdown temporarily solved the rendering issue. But the html regex inmarked.js
needs to be modified to recognize HTML both before and after a comment.Alternatively, it could just mention in the documentation that blank lines are required between the comments and the HTML code.
https://github.com/chjj/marked/blob/84c330b62beee7dab83764f373eaf80414b2516e/lib/marked.js#L23
The text was updated successfully, but these errors were encountered: