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.
94 lines
1.1 KiB
94 lines
1.1 KiB
![]()
10 years ago
|
.
|
||
|
~~Strikeout~~
|
||
|
.
|
||
|
<p><del>Strikeout</del></p>
|
||
![]()
10 years ago
|
.
|
||
|
|
||
|
|
||
|
These are not strikeouts, you have to use exactly two "~~":
|
||
|
.
|
||
|
x ~~~foo~~~
|
||
|
|
||
|
x ~~foo~~~
|
||
|
|
||
|
x ~~~foo~~
|
||
|
.
|
||
|
<p>x ~~~foo~~~</p>
|
||
|
<p>x ~~foo~~~</p>
|
||
|
<p>x ~~~foo~~</p>
|
||
|
.
|
||
|
|
||
|
Strikeouts have the same priority as emphases:
|
||
|
|
||
|
.
|
||
|
**~~test**~~
|
||
|
|
||
|
~~**test~~**
|
||
|
.
|
||
![]()
10 years ago
|
<p>**<del>test**</del></p>
|
||
|
<p>~~<strong>test~~</strong></p>
|
||
![]()
10 years ago
|
.
|
||
|
|
||
|
Strikeouts have the same priority as emphases with respect to links:
|
||
|
.
|
||
|
[~~link]()~~
|
||
|
|
||
|
~~[link~~]()
|
||
|
.
|
||
|
<p><a href="">~~link</a>~~</p>
|
||
|
<p>~~<a href="">link~~</a></p>
|
||
|
.
|
||
|
|
||
|
Strikeouts have the same priority as emphases with respect to backticks:
|
||
|
.
|
||
|
~~`code~~`
|
||
|
|
||
|
`~~code`~~
|
||
|
.
|
||
|
<p>~~<code>code~~</code></p>
|
||
|
<p><code>~~code</code>~~</p>
|
||
|
.
|
||
|
|
||
|
Nested strikeouts:
|
||
|
.
|
||
|
~~foo ~~bar~~ baz~~
|
||
![]()
10 years ago
|
.
|
||
|
<p><del>foo <del>bar</del> baz</del></p>
|
||
|
.
|
||
![]()
10 years ago
|
|
||
![]()
10 years ago
|
.
|
||
![]()
10 years ago
|
~~f **o ~~o b~~ a** r~~
|
||
|
.
|
||
|
<p><del>f <strong>o <del>o b</del> a</strong> r</del></p>
|
||
|
.
|
||
|
|
||
|
Should not have a whitespace between text and "~~":
|
||
|
.
|
||
|
foo ~~ bar ~~ baz
|
||
|
.
|
||
|
<p>foo ~~ bar ~~ baz</p>
|
||
|
.
|
||
![]()
10 years ago
|
|
||
|
|
||
|
Newline should be considered a whitespace:
|
||
|
|
||
|
.
|
||
|
~~test
|
||
|
~~
|
||
|
|
||
|
~~
|
||
|
test~~
|
||
|
|
||
|
~~
|
||
|
test
|
||
|
~~
|
||
|
.
|
||
|
<p>~~test
|
||
|
~~</p>
|
||
|
<p>~~
|
||
|
test~~</p>
|
||
|
<p>~~
|
||
|
test
|
||
|
~~</p>
|
||
|
.
|