mity / md4c

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

Broken permissive autolink justbefore end-of-file #43

Closed mity closed 6 years ago

mity commented 6 years ago
$ echo -n 'http://example.com' | md2html/md2html --github

generates

<p><a href="http://example.com�">http://example.com</p>

I.e. there is garbage in the link URL and the link is not correctly ended with </a>.

mity commented 6 years ago

Caused by a mark of zero length (as internally used by permissive link processing) just before the end of file.