Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline comment incorrectly parsed as header #772

Closed
lkho opened this issue Apr 12, 2021 · 1 comment
Closed

inline comment incorrectly parsed as header #772

lkho opened this issue Apr 12, 2021 · 1 comment

Comments

@lkho
Copy link

lkho commented Apr 12, 2021

when an inline comment contains a == on a new line, and there is no blank lines between the starting tag <!-- and ==, the inline comment is treated as header.

test:

<!--
==
-->
okay

expected:
https://spec.commonmark.org/dingus/?text=%3C!--%0A%3D%3D%0A--%3E%0Aokay%0A

markdown-it output:
http://markdown-it.github.io/#md3=%7B%22source%22%3A%22%3C!--%5Cn%3D%3D%5Cn--%3E%5Cnokay%5Cn%22%2C%22defaults%22%3A%7B%22html%22%3Atrue%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Afalse%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Afalse%2C%22typographer%22%3Afalse%2C%22_highlight%22%3Afalse%2C%22_strict%22%3Atrue%2C%22_view%22%3A%22html%22%7D%7D

@rlidwka
Copy link
Member

rlidwka commented Apr 12, 2021

Fixed, thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants