HtmlBlockType.Comment has incorrect spans #16

Closed
opened 2026-01-29 14:19:55 +00:00 by claunia · 2 comments
Owner

Originally created by @madskristensen on GitHub (Jun 19, 2016).

When HtmlBlock.Type == HtmlBlockType.Comment, the span ends at the very end of the MarkdownDocument instead of the comment's closing tag.

Example:

<!-- this is great --> 
**hello**

The span length goes from the beginning <!-- to the end of the document

Originally created by @madskristensen on GitHub (Jun 19, 2016). When HtmlBlock.Type == HtmlBlockType.Comment, the span ends at the very end of the MarkdownDocument instead of the comment's closing tag. Example: ``` markdown <!-- this is great --> **hello** ``` The span length goes from the beginning `<!--` to the end of the document
claunia added the bug label 2026-01-29 14:19:55 +00:00
Author
Owner

@madskristensen commented on GitHub (Jun 19, 2016):

Actually, it appears to happen when the comment block isn't on the first line of the document, but somewhere in the middle

@madskristensen commented on GitHub (Jun 19, 2016): Actually, it appears to happen when the comment block isn't on the first line of the document, but somewhere in the middle
Author
Owner

@xoofx commented on GitHub (Jun 19, 2016):

Fixed by commit be9c6fa.
0.5.4 on the way

@xoofx commented on GitHub (Jun 19, 2016): Fixed by commit be9c6fa. 0.5.4 on the way
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#16