mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
HtmlBlockType.Comment has incorrect spans #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
The span length goes from the beginning
<!--to the end of the document@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
@xoofx commented on GitHub (Jun 19, 2016):
Fixed by commit
be9c6fa.0.5.4 on the way