Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
https://markdown-it.github.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1023 B
58 lines
1023 B
10 years ago
|
linkify
|
||
|
.
|
||
|
url http://www.youtube.com/watch?v=5Jt5GEr4AYg.
|
||
|
.
|
||
|
<p>url <a href="http://www.youtube.com/watch?v=5Jt5GEr4AYg">http://www.youtube.com/watch?v=5Jt5GEr4AYg</a>.</p>
|
||
|
.
|
||
10 years ago
|
|
||
|
|
||
|
don't touch text in links
|
||
10 years ago
|
.
|
||
10 years ago
|
[https://example.com](https://example.com)
|
||
10 years ago
|
.
|
||
10 years ago
|
<p><a href="https://example.com">https://example.com</a></p>
|
||
10 years ago
|
.
|
||
10 years ago
|
|
||
|
|
||
|
don't touch text in autolinks
|
||
|
.
|
||
|
<https://example.com>
|
||
|
.
|
||
|
<p><a href="https://example.com">https://example.com</a></p>
|
||
|
.
|
||
|
|
||
|
|
||
|
don't touch text in html <a> tags
|
||
|
.
|
||
|
<a href="https://example.com">https://example.com</a>
|
||
|
.
|
||
|
<p><a href="https://example.com">https://example.com</a></p>
|
||
|
.
|
||
|
|
||
10 years ago
|
|
||
|
match links without protocol
|
||
|
.
|
||
|
www.example.org
|
||
|
.
|
||
|
<p><a href="http://www.example.org">www.example.org</a></p>
|
||
|
.
|
||
|
|
||
|
|
||
|
properly cut domain end
|
||
|
.
|
||
|
www.example.org版权所有
|
||
|
.
|
||
|
<p><a href="http://www.example.org">www.example.org</a>版权所有</p>
|
||
|
.
|
||
10 years ago
|
|
||
|
|
||
|
emails
|
||
|
.
|
||
|
test@example.com
|
||
|
|
||
|
mailto:test@example.com
|
||
|
.
|
||
|
<p><a href="mailto:test@example.com">test@example.com</a></p>
|
||
|
<p><a href="mailto:test@example.com">mailto:test@example.com</a></p>
|
||
|
.
|