We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<!a> is a type-4 HTML block.
<!a>
Start condition: line begins with the string <! followed by an ASCII letter. End condition: line contains the character >. --- https://spec.commonmark.org/0.30/#html-blocks
<!
>
--- https://spec.commonmark.org/0.30/#html-blocks
And the same section says:
All types of HTML blocks except type 7 may interrupt a paragraph.
Thus, <!a> is expected to interrupt paragraphs, if I understand correctly. However, commonmark.js demo emits unexpected output.
input:
> foo <!a> > bar
expected output:
<blockquote> <p>foo</p> </blockquote> <!a> <blockquote> <p>bar</p> </blockquote>
actual output: (https://spec.commonmark.org/dingus/?text=%3E%20foo%0A%3C!a%3E%0A%3E%20bar)
<blockquote> <p>foo <!a> bar</p> </blockquote>
foo <!a> bar
<p>foo</p> <!a> <p>bar</p>
actual output: (https://spec.commonmark.org/dingus/?text=foo%0A%3C!a%3E%0Abar)
<p>foo <!a> bar</p>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
<!a>
is a type-4 HTML block.And the same section says:
Thus,
<!a>
is expected to interrupt paragraphs, if I understand correctly.However, commonmark.js demo emits unexpected output.
Case 1
input:
expected output:
actual output: (https://spec.commonmark.org/dingus/?text=%3E%20foo%0A%3C!a%3E%0A%3E%20bar)
Case 2
input:
foo <!a> bar
expected output:
actual output: (https://spec.commonmark.org/dingus/?text=foo%0A%3C!a%3E%0Abar)
The text was updated successfully, but these errors were encountered: