test(anchor): no protocol links are still treated as links

Closes https://github.com/showdownjs/showdown/issues/755
This commit is contained in:
SyntaxRules 2022-02-07 11:07:11 -07:00
parent def6f0b453
commit 17837832b4
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<p><a href="/uri">link</a></p>
<p><a href="http://example.com/">link</a></p>
<p><a href="http://example.com">link</a></p>
<p><a href="https://example.com">link</a></p>
<p><a href="https://example.com/">link</a></p>
<p><a href="example.com">link</a></p>
<p><a href="www.example.com">link</a></p>
<p><a href="file://example.com">link</a></p>
<p><a href="file://www.example.com">link</a></p>
<p><a href="example.jpg">link</a></p>
<p><a href="example.io">link</a></p>

View File

@ -0,0 +1,21 @@
[link](/uri)
[link](http://example.com/)
[link](http://example.com)
[link](https://example.com)
[link](https://example.com/)
[link](example.com)
[link](www.example.com)
[link](file://example.com)
[link](file://www.example.com)
[link](example.jpg)
[link](example.io)