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.
105 lines
1.1 KiB
105 lines
1.1 KiB
10 years ago
|
.
|
||
|
~~Strikeout~~
|
||
|
.
|
||
10 years ago
|
<p><s>Strikeout</s></p>
|
||
10 years ago
|
.
|
||
|
|
||
10 years ago
|
.
|
||
|
x ~~~~foo~~ bar~~
|
||
|
.
|
||
10 years ago
|
<p>x <s><s>foo</s> bar</s></p>
|
||
10 years ago
|
.
|
||
|
|
||
|
.
|
||
|
x ~~foo ~~bar~~~~
|
||
|
.
|
||
10 years ago
|
<p>x <s>foo <s>bar</s></s></p>
|
||
10 years ago
|
.
|
||
|
|
||
|
.
|
||
|
x ~~~~foo~~~~
|
||
|
.
|
||
10 years ago
|
<p>x <s><s>foo</s></s></p>
|
||
10 years ago
|
.
|
||
|
|
||
10 years ago
|
# Disabled since we moved subsripts to plugins
|
||
|
#.
|
||
|
#x ~~~foo~~~
|
||
|
#.
|
||
10 years ago
|
#<p>x <s><sub>foo</sub></s></p>
|
||
10 years ago
|
#.
|
||
10 years ago
|
|
||
10 years ago
|
Strikeouts have the same priority as emphases:
|
||
|
|
||
|
.
|
||
|
**~~test**~~
|
||
|
|
||
|
~~**test~~**
|
||
|
.
|
||
10 years ago
|
<p><strong>~~test</strong>~~</p>
|
||
10 years ago
|
<p><s>**test</s>**</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
|
.
|
||
10 years ago
|
<p><s>foo <s>bar</s> baz</s></p>
|
||
10 years ago
|
.
|
||
10 years ago
|
|
||
10 years ago
|
.
|
||
10 years ago
|
~~f **o ~~o b~~ a** r~~
|
||
|
.
|
||
10 years ago
|
<p><s>f <strong>o <s>o b</s> a</strong> r</s></p>
|
||
10 years ago
|
.
|
||
|
|
||
|
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>
|
||
|
.
|