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.
104 lines
1.1 KiB
104 lines
1.1 KiB
.
|
|
++Insert++
|
|
.
|
|
<p><ins>Insert</ins></p>
|
|
.
|
|
|
|
|
|
.
|
|
x ++++foo++ bar++
|
|
.
|
|
<p>x <ins><ins>foo</ins> bar</ins></p>
|
|
.
|
|
|
|
.
|
|
x ++foo ++bar++++
|
|
.
|
|
<p>x <ins>foo <ins>bar</ins></ins></p>
|
|
.
|
|
|
|
.
|
|
x ++++foo++++
|
|
.
|
|
<p>x <ins><ins>foo</ins></ins></p>
|
|
.
|
|
|
|
.
|
|
x +++foo+++
|
|
.
|
|
<p>x <ins>+foo+</ins></p>
|
|
.
|
|
|
|
Inserts have the same priority as emphases:
|
|
|
|
.
|
|
**++test**++
|
|
|
|
++**test++**
|
|
.
|
|
<p><strong>++test</strong>++</p>
|
|
<p><ins>**test</ins>**</p>
|
|
.
|
|
|
|
Inserts have the same priority as emphases with respect to links:
|
|
.
|
|
[++link]()++
|
|
|
|
++[link++]()
|
|
.
|
|
<p><a href="">++link</a>++</p>
|
|
<p>++<a href="">link++</a></p>
|
|
.
|
|
|
|
Inserts have the same priority as emphases with respect to backticks:
|
|
.
|
|
++`code++`
|
|
|
|
`++code`++
|
|
.
|
|
<p>++<code>code++</code></p>
|
|
<p><code>++code</code>++</p>
|
|
.
|
|
|
|
Nested inserts:
|
|
.
|
|
++foo ++bar++ baz++
|
|
.
|
|
<p><ins>foo <ins>bar</ins> baz</ins></p>
|
|
.
|
|
|
|
.
|
|
++f **o ++o b++ a** r++
|
|
.
|
|
<p><ins>f <strong>o <ins>o b</ins> a</strong> r</ins></p>
|
|
.
|
|
|
|
Should not have a whitespace between text and "++":
|
|
.
|
|
foo ++ bar ++ baz
|
|
.
|
|
<p>foo ++ bar ++ baz</p>
|
|
.
|
|
|
|
|
|
Newline should be considered a whitespace:
|
|
|
|
.
|
|
++test
|
|
++
|
|
|
|
++
|
|
test++
|
|
|
|
++
|
|
test
|
|
++
|
|
.
|
|
<p>++test
|
|
++</p>
|
|
<p>++
|
|
test++</p>
|
|
<p>++
|
|
test
|
|
++</p>
|
|
.
|
|
|