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.
80 lines
713 B
80 lines
713 B
![]()
10 years ago
|
Regression tests for link backtracking optimizations:
|
||
|
|
||
|
.
|
||
|
[[some unrelated text [link]
|
||
|
|
||
|
[link]: foo
|
||
|
.
|
||
|
<p>[[some unrelated text <a href="foo">link</a></p>
|
||
|
.
|
||
|
|
||
|
.
|
||
|
[[some unrelated text [[link]]
|
||
|
|
||
|
[[link]]: foo
|
||
|
.
|
||
|
<p>[[some unrelated text <a href="foo">[link]</a></p>
|
||
|
.
|
||
|
|
||
![]()
10 years ago
|
|
||
|
|
||
![]()
10 years ago
|
This is not a valid emphasis, because \n considered a whitespace:
|
||
|
|
||
|
.
|
||
|
**test
|
||
|
**
|
||
|
|
||
|
**
|
||
|
test**
|
||
|
|
||
|
**
|
||
|
test
|
||
|
**
|
||
|
.
|
||
|
<p>**test
|
||
|
**</p>
|
||
|
<p>**
|
||
|
test**</p>
|
||
|
<p>**
|
||
|
test
|
||
|
**</p>
|
||
|
.
|
||
|
|
||
![]()
10 years ago
|
|
||
|
|
||
|
The same for strikethrough:
|
||
![]()
10 years ago
|
|
||
|
.
|
||
|
~~test
|
||
|
~~
|
||
|
|
||
|
~~
|
||
|
test~~
|
||
|
|
||
|
~~
|
||
|
test
|
||
|
~~
|
||
|
.
|
||
|
<p>~~test
|
||
|
~~</p>
|
||
|
<p>~~
|
||
|
test~~</p>
|
||
|
<p>~~
|
||
|
test
|
||
|
~~</p>
|
||
|
.
|
||
![]()
10 years ago
|
|
||
![]()
10 years ago
|
|
||
|
|
||
|
Link label has priority over emphasis (not covered by stmd tests):
|
||
![]()
10 years ago
|
|
||
|
.
|
||
|
[**link]()**
|
||
|
|
||
|
**[link**]()
|
||
|
.
|
||
|
<p><a href="">**link</a>**</p>
|
||
|
<p>**<a href="">link**</a></p>
|
||
|
.
|
||
![]()
10 years ago
|
|