Closed xiaq closed 1 year ago
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:
<!A>
cmark
$ echo 'a <!A>' | cmark <p>a <!A></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).
According to the spec (https://spec.commonmark.org/0.30/#declaration),
<!A>
should be a valid declaration. Butcmark
requires there to be a space:commonmark.js has the same behavior (https://spec.commonmark.org/dingus/?text=a%20%3C!A%3E%0A%0Aa%20%3C!A%20%3E).