mity / md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
MIT License
759 stars 140 forks source link

"</script" et the end of file #68

Closed mity closed 5 years ago

mity commented 5 years ago

See this:

$ printf '<script' | ./md2html
<p>&lt;script</p>

But it should be HTML block as it fulfills the starting condition 1. See https://spec.commonmark.org/0.28/#html-blocks.

It works correctly when new line follows:

$ printf '<script\n' | ./md2html
<script
mity commented 5 years ago

Unfortunately, adding into test/coverage.txt does not make any sense, as the format of the file does not allow input which does not end with a new line character. :-(