blob: 4729287bf825979f9079fa674fa0043c7fe9c262 [file]
>>> asterisk, plus and hyphen
* star
- dash
+ plus
<<<
<ul><li>star</li><li>dash</li><li>plus</li></ul>
>>> allow numbered lines after first
* a
1. b
<<<
<ul><li>a</li><li>b</li></ul>
>>> allow a tab after the marker
* a
+ b
- c
1. d
<<<
<ul><li>a</li><li>b</li><li>c</li><li>d</li></ul>
>>> wrap items in paragraphs if blank lines separate
* one
* two
<<<
<ul><li>
<p>one</p></li><li>
<p>two</p></li></ul>
>>> force paragraph on item before and after blank lines
* one
* two
* three
<<<
<ul><li>
<p>one</p></li><li>
<p>two</p></li><li>
<p>three</p></li></ul>
>>> do not force paragraph if item is already block
* > quote
* # header
<<<
<ul><li>
<blockquote>
<p>quote</p></blockquote></li><li>
<h1>header</h1></li></ul>
>>> can contain multiple paragraphs
* one
two
* three
<<<
<ul><li>
<p>one</p>
<p>two</p></li><li>
<p>three</p></li></ul>
>>> can span newlines
* one
two
* three
<<<
<ul><li>one
two</li><li>three</li></ul>
>>> can nest lists
* one
* nested one
* nested two
* two
<<<
<ul><li>
<p>one</p><ul><li>nested one</li><li>nested two</li></ul></li><li>
<p>two</p></li></ul>
>>> list item turns what might be an h1 into nothing
- list
===
<<<
<ul><li>list===</li></ul>
>>> list item turns what might be an h2 into nothing
- list
---
<<<
<ul><li>list</li></ul>
<hr />