packages feed

commonmark-extensions-0.1.0.0: test/fancy_lists.md

The `fancy_lists` extension allows various styles of ordered lists:

With period:

```````````````````````````````` example
1. decimal
2. decimal
.
<ol>
<li>decimal</li>
<li>decimal</li>
</ol>
````````````````````````````````

```````````````````````````````` example
A.  upper alpha
B.  upper alpha
.
<ol type="A">
<li>upper alpha</li>
<li>upper alpha</li>
</ol>
````````````````````````````````

```````````````````````````````` example
a. lower alpha
b. lower alpha
.
<ol type="a">
<li>lower alpha</li>
<li>lower alpha</li>
</ol>
````````````````````````````````

```````````````````````````````` example
I.  Upper Roman
II.  Upper Roman
.
<ol type="I">
<li>Upper Roman</li>
<li>Upper Roman</li>
</ol>
````````````````````````````````

```````````````````````````````` example
i. Lower Roman
ii. Lower Roman
.
<ol type="i">
<li>Lower Roman</li>
<li>Lower Roman</li>
</ol>
````````````````````````````````

With one parenthesis:

```````````````````````````````` example
1) decimal
2) decimal
.
<ol>
<li>decimal</li>
<li>decimal</li>
</ol>
````````````````````````````````

```````````````````````````````` example
A)  upper alpha
B)  upper alpha
.
<ol type="A">
<li>upper alpha</li>
<li>upper alpha</li>
</ol>
````````````````````````````````

```````````````````````````````` example
a) lower alpha
b) lower alpha
.
<ol type="a">
<li>lower alpha</li>
<li>lower alpha</li>
</ol>
````````````````````````````````

```````````````````````````````` example
I)  Upper Roman
II)  Upper Roman
.
<ol type="I">
<li>Upper Roman</li>
<li>Upper Roman</li>
</ol>
````````````````````````````````

```````````````````````````````` example
i) Lower Roman
ii) Lower Roman
.
<ol type="i">
<li>Lower Roman</li>
<li>Lower Roman</li>
</ol>
````````````````````````````````

With two parentheses:

```````````````````````````````` example
(1) decimal
(2) decimal
.
<ol>
<li>decimal</li>
<li>decimal</li>
</ol>
````````````````````````````````

```````````````````````````````` example
(A)  upper alpha
(B)  upper alpha
.
<ol type="A">
<li>upper alpha</li>
<li>upper alpha</li>
</ol>
````````````````````````````````

```````````````````````````````` example
(a) lower alpha
(b) lower alpha
.
<ol type="a">
<li>lower alpha</li>
<li>lower alpha</li>
</ol>
````````````````````````````````

```````````````````````````````` example
(I)  Upper Roman
(II)  Upper Roman
.
<ol type="I">
<li>Upper Roman</li>
<li>Upper Roman</li>
</ol>
````````````````````````````````

```````````````````````````````` example
(i) Lower Roman
(ii) Lower Roman
.
<ol type="i">
<li>Lower Roman</li>
<li>Lower Roman</li>
</ol>
````````````````````````````````


Note that with decimal enumerators and Upper Alpha or Upper
Roman style, we require at least two spaces after the list
marker in order to avoid capturing initials:

```````````````````````````````` example
B.  Russell

B. Russell

I.  J. Good

I. J. Good
.
<ol start="2" type="A">
<li>Russell</li>
</ol>
<p>B. Russell</p>
<ol type="I">
<li>J. Good</li>
</ol>
<p>I. J. Good</p>
````````````````````````````````

A new list starts with any style change:

```````````````````````````````` example
1. one
2) one
.
<ol>
<li>one</li>
</ol>
<ol start="2">
<li>one</li>
</ol>
````````````````````````````````

```````````````````````````````` example
1. one
a. one
.
<ol>
<li>one</li>
</ol>
<ol type="a">
<li>one</li>
</ol>
````````````````````````````````

Variable start numbers should work with all types of lists:

```````````````````````````````` example
b. two

(vi) six
.
<ol start="2" type="a">
<li>two</li>
</ol>
<ol start="6" type="i">
<li>six</li>
</ol>
````````````````````````````````