-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
L2 - annoyingSimilar to L1 - broken but there is a known workaround available for the issueSimilar to L1 - broken but there is a known workaround available for the issuecategory: html blockscategory: lists
Description
Marked version: 14.1.3
Describe the bug
When a html comment appears directly after a list, the rest of the content can become incorrectly commented out
To Reproduce
Try rendering the markdown:
- list
<!--
- a
-->
More textExpected behavior
The content after the comment is not shown. Looking at the html source, you can see that an unclosed comment is created which contains the rest of the document:
<ul>
<li>list<!--</li>
<li>a
--></li>
</ul>
<p>More text</p>Seems to work on commonmark and for markdown-it
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
L2 - annoyingSimilar to L1 - broken but there is a known workaround available for the issueSimilar to L1 - broken but there is a known workaround available for the issuecategory: html blockscategory: lists