pegdown icon indicating copy to clipboard operation
pegdown copied to clipboard

URLs within an inline HTML <a> element should not be processed by AUTOLINKS

Open djneades opened this issue 13 years ago • 0 comments

In pegdown 1.2.1 with Extensions.AUTOLINKS enabled, the following Markdown containing an inline HTML <a> element:

This <a rel="external" href="http://www.example.com/">http://www.example.com/</a> line contains an inline HTML element.

renders to this malformed HTML:

<p>This <a rel="external" href="http://www.example.com/"><a href="http://www.example.com/</a">http://www.example.com/</a</a> line contains an inline HTML element.</p>

AUTOLINKS ought not to process a URL if it is already within an inline HTML <a> element.

djneades avatar Apr 19 '13 10:04 djneades