showdown/test/issues/crazy-urls.html
Estevao Soares dos Santos 30aa18c003 fix(url parsing): fix url edge case parsing in images and links
Allow some edge cases to parse correctly. Example:
`![img](.images/cat(1).png)`,
`![img](<.image(1)/cat(1).png>)`,
`[link](<>)`
2017-05-30 04:11:00 +01:00

15 lines
672 B
HTML

<p><img src="images(1)/cat(1).png" alt="my cat" /></p>
<p><a href="images(1)/cat(1).png">my cat</a></p>
<p><img src="some.com/crazy url with spaces" alt="foo" /></p>
<p><img src="some.com/crazy url with spaces" alt="foo" title="title" /></p>
<p><a href="some.com/crazy url with spaces">foo</a></p>
<p><a href="some.com/crazy url with spaces" title="title">foo</a></p>
<p><img src="" alt="empty" /></p>
<p><a href="">empty</a></p>
<p><img src="" alt="empty" title="title" /></p>
<p><a href="" title="title">empty</a></p>
<p><img src="" alt="empty" /></p>
<p><a href="">empty</a></p>
<p><img src="" alt="empty" title="title" /></p>
<p><a href="" title="title">empty</a></p>