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

HTML comments do not follow the 0.30 spec #476

Open
zombiezen opened this issue Apr 18, 2023 · 0 comments
Open

HTML comments do not follow the 0.30 spec #476

zombiezen opened this issue Apr 18, 2023 · 0 comments

Comments

@zombiezen
Copy link

cmark 0.30.3 does not follow the spec for Example 625 and Example 626.

Example input to cmark --unsafe:

foo <!-- not a comment -- two hyphens -->

foo <!--> foo -->

foo <!-- foo--->

Expected output:

<p>foo &lt;!-- not a comment -- two hyphens --&gt;</p>
<p>foo &lt;!--&gt; foo --&gt;</p>
<p>foo &lt;!-- foo---&gt;</p>

Actual output:

<p>foo <!-- not a comment -- two hyphens --></p>
<p>foo <!--> foo --&gt;</p>
<p>foo &lt;!-- foo---&gt;</p>
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

1 participant