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.
70 lines
545 B
70 lines
545 B
10 years ago
|
Here's a simple block:
|
||
|
|
||
|
<div>
|
||
|
foo
|
||
|
</div>
|
||
|
|
||
|
This should be a code block, though:
|
||
|
|
||
|
<div>
|
||
|
foo
|
||
|
</div>
|
||
|
|
||
|
As should this:
|
||
|
|
||
|
<div>foo</div>
|
||
|
|
||
|
Now, nested:
|
||
|
|
||
|
<div>
|
||
|
<div>
|
||
|
<div>
|
||
|
foo
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
This should just be an HTML comment:
|
||
|
|
||
|
<!-- Comment -->
|
||
|
|
||
|
Multiline:
|
||
|
|
||
|
<!--
|
||
|
Blah
|
||
|
Blah
|
||
|
-->
|
||
|
|
||
|
Code block:
|
||
|
|
||
|
<!-- Comment -->
|
||
|
|
||
|
Just plain comment, with trailing spaces on the line:
|
||
|
|
||
|
<!-- foo -->
|
||
|
|
||
|
Code:
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
Hr's:
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<hr>
|
||
|
|
||
|
<hr class="foo" id="bar" />
|
||
|
|
||
|
<hr class="foo" id="bar"/>
|
||
|
|
||
|
<hr class="foo" id="bar" >
|
||
|
|