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

Parsing of inline HTML declaration is stricter than spec #456

Closed
xiaq opened this issue Nov 3, 2022 · 0 comments
Closed

Parsing of inline HTML declaration is stricter than spec #456

xiaq opened this issue Nov 3, 2022 · 0 comments

Comments

@xiaq
Copy link

xiaq commented Nov 3, 2022

According to the spec (https://spec.commonmark.org/0.30/#declaration), <!A> should be a valid declaration. But cmark requires there to be a space:

$ echo 'a <!A>' | cmark
<p>a &lt;!A&gt;</p>
$ echo 'a <!A >' | cmark
<p>a <!-- raw HTML omitted --></p>

commonmark.js has the same behavior (https://spec.commonmark.org/dingus/?text=a%20%3C!A%3E%0A%0Aa%20%3C!A%20%3E).

@jgm jgm closed this as completed in b1d961c Nov 3, 2022
jgm added a commit to commonmark/commonmark.js that referenced this issue Nov 3, 2022
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