vmg / sundown

Standards compliant, fast, secure markdown processing library in C
1.99k stars 385 forks source link

autolink_url fails and autolink_www takes over when text runs into link #73

Closed spladug closed 12 years ago

spladug commented 12 years ago
This text has a lack of spaceshttp://www.google.com

renders as

<p>This text has a lack of spaceshttp://<a href="http://www.google.com">www.google.com</a></p>

rather than

<p>This text has a lack of spaces<a href="http://www.google.com">http://www.google.com</a></p>
vmg commented 12 years ago

Do we really want to match that? No other autolinking algorithm does it -- I guess because it looks ugly as hell.

spladug commented 12 years ago

This came from the testing against reddit's discount, so discount does this at least. I agree it's ugly, but the current rendered output is somewhat confusing to an end user.