Closed mitxela closed 5 years ago
Thanks, will take a look at it.
Interesting. The bug depends on the char just after the link.
When dot follows:
$ echo '[link](http://github.com).' | md2html/md2html.exe --github
<p><a href="http://github.com">link</a></a>.</p>
When a letter follows, it's broken in a different way:
$ echo '[link](http://github.com)X' | md2html/md2html.exe --github
<p><a href="http://github.com">link</a>X</a></p>
And when space or EOF follows, it works correctly:
$ echo '[link](http://github.com) ' | md2html/md2html.exe --github
<p><a href="http://github.com">link</a></p>
With permissive WWW autolinks, there is the same issue:
/prj/md4c/build $ echo '[link](www.github.com).' | md2html/md2html.exe --github
<p><a href="www.github.com">link</a></a>.</p>
/prj/md4c/build $ echo '[link](www.github.com)X' | md2html/md2html.exe --github
<p><a href="www.github.com">link</a>X</a></p>
With permissive-url-autolinks enabled, md2html appears to generate an extra closing tag after an ordinary inline link.