You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[An HTML block] ends with the first subsequent line that meets a matching end condition. (emphasis mine)
cmark <<EOF<!-- comment --> 01-->2EOF
<!-- raw HTML omitted -->
<p>1
-->
2
EOF</p>
I think cmark parses the comment as an HTML block. It couldn't be a raw HTML comment (spec 6.6) otherwise "0" would surface inside a <p>. So it seems that, contrary to the specification, the HTML block ends on the same line where it starts, instead of ending between "1" and "2".
The text was updated successfully, but these errors were encountered:
Why is the HTML block (spec 4.6) closed on the same line when
https://github.com/commonmark/commonmark-spec/blob/d5706b9553d4665ca730524323d484880440186c/spec.txt#L2368 says that
I think cmark parses the comment as an HTML block. It couldn't be a raw HTML comment (spec 6.6) otherwise "0" would surface inside a
<p>
. So it seems that, contrary to the specification, the HTML block ends on the same line where it starts, instead of ending between "1" and "2".The text was updated successfully, but these errors were encountered: