blob: 4e64f1e69989198e29e881a5828a3443185cf01c [file] [edit]
>>> basic link
before <http://foo.com/> after
<<<
<p>before <a href="http://foo.com/">http://foo.com/</a> after</p>
>>> handles ampersand in url
<http://foo.com/?a=1&b=2>
<<<
<p><a href="http://foo.com/?a=1&amp;b=2">http://foo.com/?a=1&amp;b=2</a></p>
>>> unclosed autolink before another autolink
<http://a<http://foo.com/>
<<<
<p>&lt;http://a<a href="http://foo.com/">http://foo.com/</a></p>