HtmlBlockType.Comment has incorrect spans #13

Open
opened 2026-01-29 14:19:45 +00:00 by claunia · 0 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:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#13