Markdown reader: ordered sublists must start with 1

(or equivalent, e.g. 'i').  This brings the markdown
parser in line with commonmark, and avoids a lot of
unintended list starts.  Closes #11735.

Note that ordered lists that are not sublists may
still start with numbers other than 1.
This commit is contained in:
John MacFarlane
2026-07-01 10:45:29 +02:00
parent 76bd78f653
commit 8547196b44
44 changed files with 252 additions and 243 deletions
+4
View File
@@ -4552,6 +4552,10 @@ ordered list marker in place of a numeral:
Note: the '`#`' ordered list marker doesn't work with `commonmark`.
As with `commonmark`, ordered sublists must start with `1` or the
equivalent (e.g., `i` or `a`). This helps avoid unintentional
lists caused by things like parenthesized dates.
### Extension: `startnum` ###
Pandoc also pays attention to the type of list marker used, and to the
+3 -3
View File
@@ -269,8 +269,8 @@ indented with spaces</p></li>
<p>with a continuation</p>
<ol>
<li>sublist with roman numerals,
starting with 4</li>
<li>sublist with roman numerals
starting with i.</li>
<li>more items
<ol>
@@ -289,7 +289,7 @@ starting with 4</li>
<li>Upper Roman.
<ol>
<li>Decimal start with 6
<li>Decimal start with 1
<ol>
<li>Lower alpha with paren</li>
+2
View File
@@ -982,6 +982,8 @@ listItem fourSpaceRule start = try $ do
orderedList :: PandocMonad m => MarkdownParser m (F Blocks)
orderedList = try $ do
(start, style, delim) <- lookAhead (orderedListStart Nothing)
ctx <- stateParserContext <$> getState
when (ctx == ListItemState) $ guard (start == 1)
unless (style `elem` [DefaultStyle, Decimal, Example] &&
delim `elem` [DefaultDelim, Period]) $
guardEnabled Ext_fancy_lists
+14
View File
@@ -0,0 +1,14 @@
```
% pandoc
- Value ends with
2.
- Gilda
(1946)
^D
<ul>
<li>Value ends with
2.</li>
<li>Gilda
(1946)</li>
</ul>
```
+7 -7
View File
@@ -595,7 +595,7 @@ Pandoc
, Str "continuation"
]
, OrderedList
( 4 , LowerRoman , Period )
( 1 , LowerRoman , Period )
[ [ Plain
[ Str "sublist"
, Space
@@ -603,13 +603,13 @@ Pandoc
, Space
, Str "roman"
, Space
, Str "numerals,"
, Str "numerals"
, SoftBreak
, Str "starting"
, Space
, Str "with"
, Space
, Str "4"
, Str "i."
]
]
, [ Plain [ Str "more" , Space , Str "items" ]
@@ -624,13 +624,13 @@ Pandoc
]
, Para [ Str "Nesting:" ]
, OrderedList
( 1 , UpperAlpha , Period )
( 4 , UpperAlpha , Period )
[ [ Plain [ Str "Upper" , Space , Str "Alpha" ]
, OrderedList
( 1 , UpperRoman , Period )
[ [ Plain [ Str "Upper" , Space , Str "Roman." ]
, OrderedList
( 6 , Decimal , TwoParens )
( 1 , Decimal , TwoParens )
[ [ Plain
[ Str "Decimal"
, Space
@@ -638,10 +638,10 @@ Pandoc
, Space
, Str "with"
, Space
, Str "6"
, Str "1"
]
, OrderedList
( 3 , LowerAlpha , OneParen )
( 1 , LowerAlpha , OneParen )
[ [ Plain
[ Str "Lower"
, Space
+6 -6
View File
@@ -237,18 +237,18 @@ Same thing but with paragraphs:
with a continuation
iv. sublist with roman numerals,
starting with 4
v. more items
i. sublist with roman numerals
starting with i.
ii. more items
(A) a subsublist
(B) a subsublist
Nesting:
A. Upper Alpha
D. Upper Alpha
I. Upper Roman.
(6) Decimal start with 6
c) Lower alpha with paren
(1) Decimal start with 1
a) Lower alpha with paren
Autonumbering:
+6 -6
View File
@@ -233,8 +233,8 @@ Same thing but with paragraphs:
. and now 3
+
with a continuation
[lowerroman, start=4]
.. sublist with roman numerals, starting with 4
[lowerroman]
.. sublist with roman numerals starting with i.
.. more items
[upperalpha]
... a subsublist
@@ -242,13 +242,13 @@ with a continuation
Nesting:
[upperalpha]
[upperalpha, start=4]
. Upper Alpha
[upperroman]
.. Upper Roman.
[arabic, start=6]
... Decimal start with 6
[loweralpha, start=3]
[arabic]
... Decimal start with 1
[loweralpha]
.... Lower alpha with paren
Autonumbering:
+6 -6
View File
@@ -232,8 +232,8 @@ Same thing but with paragraphs:
. and now 3
+
with a continuation
[lowerroman, start=4]
.. sublist with roman numerals, starting with 4
[lowerroman]
.. sublist with roman numerals starting with i.
.. more items
[upperalpha]
... a subsublist
@@ -241,13 +241,13 @@ with a continuation
Nesting:
[upperalpha]
[upperalpha, start=4]
. Upper Alpha
[upperroman]
.. Upper Roman.
[arabic, start=6]
... Decimal start with 6
[loweralpha, start=3]
[arabic]
... Decimal start with 1
[loweralpha]
.... Lower alpha with paren
Autonumbering:
+2 -2
View File
@@ -260,7 +260,7 @@ Same thing but with paragraphs:
with a continuation
[list=i]
[*]sublist with roman numerals, starting with 4
[*]sublist with roman numerals starting with i.
[*]more items
[list=A]
@@ -279,7 +279,7 @@ Nesting:
[*]Upper Roman.
[list=1]
[*]Decimal start with 6
[*]Decimal start with 1
[list=a]
[*]Lower alpha with paren
+6 -6
View File
@@ -431,9 +431,9 @@ Same thing but with paragraphs:
with a continuation
\startenumerate[r,packed][start=4,stopper=.]
\startenumerate[r,packed][stopper=.]
\item
sublist with roman numerals, starting with 4
sublist with roman numerals starting with i.
\item
more items
\startenumerate[A,packed][left=(,stopper=)]
@@ -447,16 +447,16 @@ Same thing but with paragraphs:
Nesting:
\startenumerate[A,packed][stopper=.]
\startenumerate[A,packed][start=4,stopper=.]
\item
Upper Alpha
\startenumerate[R,packed][stopper=.]
\item
Upper Roman.
\startenumerate[n,packed][start=6,left=(,stopper=)]
\startenumerate[n,packed][left=(,stopper=)]
\item
Decimal start with 6
\startenumerate[a,packed][start=3,stopper=)]
Decimal start with 1
\startenumerate[a,packed][stopper=)]
\item
Lower alpha with paren
\stopenumerate
+7 -7
View File
@@ -256,21 +256,21 @@ Same thing but with paragraphs:
with a continuation
iv. sublist with roman numerals, starting with 4
v. more items
i. sublist with roman numerals starting with i.
ii. more items
(A) a subsublist
(B) a subsublist
(A) a subsublist
(B) a subsublist
Nesting:
A. Upper Alpha
D. Upper Alpha
I. Upper Roman.
(6) Decimal start with 6
(1) Decimal start with 1
c) Lower alpha with paren
a) Lower alpha with paren
Autonumbering:
+6 -6
View File
@@ -525,10 +525,10 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<para>
with a continuation
</para>
<orderedlist numeration="lowerroman" spacing="compact" startingnumber="4">
<orderedlist numeration="lowerroman" spacing="compact">
<listitem>
<para>
sublist with roman numerals, starting with 4
sublist with roman numerals starting with i.
</para>
</listitem>
<listitem>
@@ -554,7 +554,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<para>
Nesting:
</para>
<orderedlist numeration="upperalpha" spacing="compact">
<orderedlist numeration="upperalpha" spacing="compact" startingnumber="4">
<listitem>
<para>
Upper Alpha
@@ -564,12 +564,12 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<para>
Upper Roman.
</para>
<orderedlist numeration="arabic" spacing="compact" startingnumber="6">
<orderedlist numeration="arabic" spacing="compact">
<listitem>
<para>
Decimal start with 6
Decimal start with 1
</para>
<orderedlist numeration="loweralpha" spacing="compact" startingnumber="3">
<orderedlist numeration="loweralpha" spacing="compact">
<listitem>
<para>
Lower alpha with paren
+6 -6
View File
@@ -527,10 +527,10 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<para>
with a continuation
</para>
<orderedlist numeration="lowerroman" spacing="compact" startingnumber="4">
<orderedlist numeration="lowerroman" spacing="compact">
<listitem>
<para>
sublist with roman numerals, starting with 4
sublist with roman numerals starting with i.
</para>
</listitem>
<listitem>
@@ -556,7 +556,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<para>
Nesting:
</para>
<orderedlist numeration="upperalpha" spacing="compact">
<orderedlist numeration="upperalpha" spacing="compact" startingnumber="4">
<listitem>
<para>
Upper Alpha
@@ -566,12 +566,12 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<para>
Upper Roman.
</para>
<orderedlist numeration="arabic" spacing="compact" startingnumber="6">
<orderedlist numeration="arabic" spacing="compact">
<listitem>
<para>
Decimal start with 6
Decimal start with 1
</para>
<orderedlist numeration="loweralpha" spacing="compact" startingnumber="3">
<orderedlist numeration="loweralpha" spacing="compact">
<listitem>
<para>
Lower alpha with paren
+4 -10
View File
@@ -211,7 +211,7 @@ Same thing but with paragraphs:
- <WRAP>
and now 3
with a continuation
- sublist with roman numerals, starting with 4
- sublist with roman numerals starting with i.
- more items
- a subsublist
- a subsublist
@@ -219,16 +219,10 @@ with a continuation
Nesting:
- <WRAP>
Upper Alpha
- <WRAP>
Upper Roman.
- <WRAP>
Decimal start with 6
- Upper Alpha
- Upper Roman.
- Decimal start with 1
- Lower alpha with paren
</WRAP>
</WRAP>
</WRAP>
Autonumbering:
+9 -9
View File
@@ -307,16 +307,16 @@ indented with spaces</p>
<empty-line />
<p>    with a continuation</p>
<empty-line />
<p>(3) iv. sublist with roman numerals,
starting with 4</p>
<p>(3) v. more items</p>
<p>(3) v. (A) a subsublist</p>
<p>(3) v. (B) a subsublist</p>
<p>(3) i. sublist with roman numerals
starting with i.</p>
<p>(3) ii. more items</p>
<p>(3) ii. (A) a subsublist</p>
<p>(3) ii. (B) a subsublist</p>
<p>Nesting:</p>
<p>A. Upper Alpha</p>
<p>A. I. Upper Roman.</p>
<p>A. I. (6) Decimal start with 6</p>
<p>A. I. (6) c) Lower alpha with paren</p>
<p>D. Upper Alpha</p>
<p>D. I. Upper Roman.</p>
<p>D. I. (1) Decimal start with 1</p>
<p>D. I. (1) a) Lower alpha with paren</p>
<p>Autonumbering:</p>
<p>1. Autonumber.</p>
<p>2. More.</p>
+5 -5
View File
@@ -240,17 +240,17 @@ Same thing but with paragraphs:
with a continuation
4. sublist with roman numerals, starting with 4
5. more items
1. sublist with roman numerals starting with i.
2. more items
(1) a subsublist
(2) a subsublist
Nesting:
1. Upper Alpha
4. Upper Alpha
1. Upper Roman.
(6) Decimal start with 6
3) Lower alpha with paren
(1) Decimal start with 1
1) Lower alpha with paren
Autonumbering:
+6 -6
View File
@@ -367,8 +367,8 @@ back.</p></li>
<li><p>begins with 2</p></li>
<li><p>and now 3</p>
<p>with a continuation</p>
<ol start="4" style="list-style-type: lower-roman">
<li>sublist with roman numerals, starting with 4</li>
<ol style="list-style-type: lower-roman">
<li>sublist with roman numerals starting with i.</li>
<li>more items
<ol style="list-style-type: upper-alpha">
<li>a subsublist</li>
@@ -377,13 +377,13 @@ back.</p></li>
</ol></li>
</ol>
<p>Nesting:</p>
<ol style="list-style-type: upper-alpha">
<ol start="4" style="list-style-type: upper-alpha">
<li>Upper Alpha
<ol style="list-style-type: upper-roman">
<li>Upper Roman.
<ol start="6" style="list-style-type: decimal">
<li>Decimal start with 6
<ol start="3" style="list-style-type: lower-alpha">
<ol style="list-style-type: decimal">
<li>Decimal start with 1
<ol style="list-style-type: lower-alpha">
<li>Lower alpha with paren</li>
</ol></li>
</ol></li>
+6 -6
View File
@@ -367,8 +367,8 @@ back.</p></li>
<li><p>begins with 2</p></li>
<li><p>and now 3</p>
<p>with a continuation</p>
<ol start="4" type="i">
<li>sublist with roman numerals, starting with 4</li>
<ol type="i">
<li>sublist with roman numerals starting with i.</li>
<li>more items
<ol type="A">
<li>a subsublist</li>
@@ -377,13 +377,13 @@ back.</p></li>
</ol></li>
</ol>
<p>Nesting:</p>
<ol type="A">
<ol start="4" type="A">
<li>Upper Alpha
<ol type="I">
<li>Upper Roman.
<ol start="6" type="1">
<li>Decimal start with 6
<ol start="3" type="a">
<ol type="1">
<li>Decimal start with 1
<ol type="a">
<li>Lower alpha with paren</li>
</ol></li>
</ol></li>
+17 -17
View File
@@ -334,13 +334,13 @@
</TabList>
</Properties>
</ParagraphStyle>
<ParagraphStyle Self="ParagraphStyle/NumList &gt; NumList &gt; NumList &gt; NumList &gt; first &gt; beginsWith-3 &gt; lowerAlpha" Name="NumList &gt; NumList &gt; NumList &gt; NumList &gt; first &gt; beginsWith-3 &gt; lowerAlpha" NumberingExpression="^#.^t" NumberingLevel="4" BulletsAndNumberingListType="NumberedList" LeftIndent="30">
<ParagraphStyle Self="ParagraphStyle/NumList &gt; NumList &gt; NumList &gt; NumList &gt; first &gt; lowerAlpha" Name="NumList &gt; NumList &gt; NumList &gt; NumList &gt; first &gt; lowerAlpha" NumberingExpression="^#.^t" NumberingLevel="4" BulletsAndNumberingListType="NumberedList" LeftIndent="30">
<Properties>
<BasedOn type="object">$ID/NormalParagraphStyle</BasedOn>
<NumberingFormat type="string">a, b, c, d...</NumberingFormat>
</Properties>
</ParagraphStyle>
<ParagraphStyle Self="ParagraphStyle/NumList &gt; NumList &gt; NumList &gt; first &gt; beginsWith-6" Name="NumList &gt; NumList &gt; NumList &gt; first &gt; beginsWith-6" NumberingExpression="^#.^t" NumberingLevel="3" BulletsAndNumberingListType="NumberedList" LeftIndent="20">
<ParagraphStyle Self="ParagraphStyle/NumList &gt; NumList &gt; NumList &gt; first" Name="NumList &gt; NumList &gt; NumList &gt; first" NumberingExpression="^#.^t" NumberingLevel="3" BulletsAndNumberingListType="NumberedList" LeftIndent="20">
<Properties>
<BasedOn type="object">$ID/NormalParagraphStyle</BasedOn>
</Properties>
@@ -357,18 +357,12 @@
<NumberingFormat type="string">A, B, C, D...</NumberingFormat>
</Properties>
</ParagraphStyle>
<ParagraphStyle Self="ParagraphStyle/NumList &gt; NumList &gt; beginsWith-4 &gt; lowerRoman" Name="NumList &gt; NumList &gt; beginsWith-4 &gt; lowerRoman" NumberingExpression="^#.^t" NumberingLevel="2" BulletsAndNumberingListType="NumberedList" LeftIndent="10">
<Properties>
<BasedOn type="object">$ID/NormalParagraphStyle</BasedOn>
<NumberingFormat type="string">i, ii, iii, iv...</NumberingFormat>
</Properties>
</ParagraphStyle>
<ParagraphStyle Self="ParagraphStyle/NumList &gt; NumList &gt; first" Name="NumList &gt; NumList &gt; first" NumberingExpression="^#.^t" NumberingLevel="2" BulletsAndNumberingListType="NumberedList" LeftIndent="10">
<Properties>
<BasedOn type="object">$ID/NormalParagraphStyle</BasedOn>
</Properties>
</ParagraphStyle>
<ParagraphStyle Self="ParagraphStyle/NumList &gt; NumList &gt; first &gt; beginsWith-4 &gt; lowerRoman" Name="NumList &gt; NumList &gt; first &gt; beginsWith-4 &gt; lowerRoman" NumberingExpression="^#.^t" NumberingLevel="2" BulletsAndNumberingListType="NumberedList" LeftIndent="10">
<ParagraphStyle Self="ParagraphStyle/NumList &gt; NumList &gt; first &gt; lowerRoman" Name="NumList &gt; NumList &gt; first &gt; lowerRoman" NumberingExpression="^#.^t" NumberingLevel="2" BulletsAndNumberingListType="NumberedList" LeftIndent="10">
<Properties>
<BasedOn type="object">$ID/NormalParagraphStyle</BasedOn>
<NumberingFormat type="string">i, ii, iii, iv...</NumberingFormat>
@@ -380,6 +374,12 @@
<NumberingFormat type="string">I, II, III, IV...</NumberingFormat>
</Properties>
</ParagraphStyle>
<ParagraphStyle Self="ParagraphStyle/NumList &gt; NumList &gt; lowerRoman" Name="NumList &gt; NumList &gt; lowerRoman" NumberingExpression="^#.^t" NumberingLevel="2" BulletsAndNumberingListType="NumberedList" LeftIndent="10">
<Properties>
<BasedOn type="object">$ID/NormalParagraphStyle</BasedOn>
<NumberingFormat type="string">i, ii, iii, iv...</NumberingFormat>
</Properties>
</ParagraphStyle>
<ParagraphStyle Self="ParagraphStyle/NumList &gt; Paragraph" Name="NumList &gt; Paragraph" NumberingExpression="^#.^t" NumberingLevel="1" BulletsAndNumberingListType="NumberedList" LeftIndent="0">
<Properties>
<BasedOn type="object">$ID/NormalParagraphStyle</BasedOn>
@@ -405,7 +405,7 @@
<BasedOn type="object">$ID/NormalParagraphStyle</BasedOn>
</Properties>
</ParagraphStyle>
<ParagraphStyle Self="ParagraphStyle/NumList &gt; first &gt; upperAlpha" Name="NumList &gt; first &gt; upperAlpha" NumberingExpression="^#.^t" NumberingLevel="1" BulletsAndNumberingListType="NumberedList" LeftIndent="0">
<ParagraphStyle Self="ParagraphStyle/NumList &gt; first &gt; beginsWith-4 &gt; upperAlpha" Name="NumList &gt; first &gt; beginsWith-4 &gt; upperAlpha" NumberingExpression="^#.^t" NumberingLevel="1" BulletsAndNumberingListType="NumberedList" LeftIndent="0">
<Properties>
<BasedOn type="object">$ID/NormalParagraphStyle</BasedOn>
<NumberingFormat type="string">A, B, C, D...</NumberingFormat>
@@ -1144,13 +1144,13 @@ These should not be escaped: \$ \\ \&gt; \[ \{</Content>
</CharacterStyleRange>
</ParagraphStyleRange>
<Br />
<ParagraphStyleRange NumberingStartAt="4" AppliedParagraphStyle="ParagraphStyle/NumList &gt; NumList &gt; first &gt; beginsWith-4 &gt; lowerRoman" NumberingContinue="false">
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/NumList &gt; NumList &gt; first &gt; lowerRoman" NumberingContinue="false">
<CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle">
<Content>sublist with roman numerals, starting with 4</Content>
<Content>sublist with roman numerals starting with i.</Content>
</CharacterStyleRange>
</ParagraphStyleRange>
<Br />
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/NumList &gt; NumList &gt; beginsWith-4 &gt; lowerRoman">
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/NumList &gt; NumList &gt; lowerRoman">
<CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle">
<Content>more items</Content>
</CharacterStyleRange>
@@ -1174,7 +1174,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{</Content>
</CharacterStyleRange>
</ParagraphStyleRange>
<Br />
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/NumList &gt; first &gt; upperAlpha" NumberingContinue="false">
<ParagraphStyleRange NumberingStartAt="4" AppliedParagraphStyle="ParagraphStyle/NumList &gt; first &gt; beginsWith-4 &gt; upperAlpha" NumberingContinue="false">
<CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle">
<Content>Upper Alpha</Content>
</CharacterStyleRange>
@@ -1186,13 +1186,13 @@ These should not be escaped: \$ \\ \&gt; \[ \{</Content>
</CharacterStyleRange>
</ParagraphStyleRange>
<Br />
<ParagraphStyleRange NumberingStartAt="6" AppliedParagraphStyle="ParagraphStyle/NumList &gt; NumList &gt; NumList &gt; first &gt; beginsWith-6" NumberingContinue="false">
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/NumList &gt; NumList &gt; NumList &gt; first" NumberingContinue="false">
<CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle">
<Content>Decimal start with 6</Content>
<Content>Decimal start with 1</Content>
</CharacterStyleRange>
</ParagraphStyleRange>
<Br />
<ParagraphStyleRange NumberingStartAt="3" AppliedParagraphStyle="ParagraphStyle/NumList &gt; NumList &gt; NumList &gt; NumList &gt; first &gt; beginsWith-3 &gt; lowerAlpha" NumberingContinue="false">
<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/NumList &gt; NumList &gt; NumList &gt; NumList &gt; first &gt; lowerAlpha" NumberingContinue="false">
<CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle">
<Content>Lower alpha with paren</Content>
</CharacterStyleRange>
+5 -6
View File
@@ -361,11 +361,9 @@ These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
<p>with a continuation</p>
<list list-type="roman-lower">
<list-item>
<label>iv.</label>
<p>sublist with roman numerals, starting with 4</p>
<p>sublist with roman numerals starting with i.</p>
</list-item>
<list-item>
<label>v.</label>
<p>more items</p>
<list list-type="alpha-upper">
<list-item>
@@ -384,17 +382,18 @@ These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
<p>Nesting:</p>
<list list-type="alpha-upper">
<list-item>
<label>D.</label>
<p>Upper Alpha</p>
<list list-type="roman-upper">
<list-item>
<p>Upper Roman.</p>
<list list-type="order">
<list-item>
<label>(6)</label>
<p>Decimal start with 6</p>
<label>(1)</label>
<p>Decimal start with 1</p>
<list list-type="alpha-lower">
<list-item>
<label>c)</label>
<label>a)</label>
<p>Lower alpha with paren</p>
</list-item>
</list>
+5 -6
View File
@@ -358,11 +358,9 @@ These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
<p>with a continuation</p>
<list list-type="order">
<list-item>
<label>iv.</label>
<p>sublist with roman numerals, starting with 4</p>
<p>sublist with roman numerals starting with i.</p>
</list-item>
<list-item>
<label>v.</label>
<p>more items</p>
<list list-type="order">
<list-item>
@@ -381,17 +379,18 @@ These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
<p>Nesting:</p>
<list list-type="order">
<list-item>
<label>D.</label>
<p>Upper Alpha</p>
<list list-type="order">
<list-item>
<p>Upper Roman.</p>
<list list-type="order">
<list-item>
<label>(6)</label>
<p>Decimal start with 6</p>
<label>(1)</label>
<p>Decimal start with 1</p>
<list list-type="order">
<list-item>
<label>c)</label>
<label>a)</label>
<p>Lower alpha with paren</p>
</list-item>
</list>
+5 -6
View File
@@ -361,11 +361,9 @@ These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
<p>with a continuation</p>
<list list-type="roman-lower">
<list-item>
<label>iv.</label>
<p>sublist with roman numerals, starting with 4</p>
<p>sublist with roman numerals starting with i.</p>
</list-item>
<list-item>
<label>v.</label>
<p>more items</p>
<list list-type="alpha-upper">
<list-item>
@@ -384,17 +382,18 @@ These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
<p>Nesting:</p>
<list list-type="alpha-upper">
<list-item>
<label>D.</label>
<p>Upper Alpha</p>
<list list-type="roman-upper">
<list-item>
<p>Upper Roman.</p>
<list list-type="order">
<list-item>
<label>(6)</label>
<p>Decimal start with 6</p>
<label>(1)</label>
<p>Decimal start with 1</p>
<list list-type="alpha-lower">
<list-item>
<label>c)</label>
<label>a)</label>
<p>Lower alpha with paren</p>
</list-item>
</list>
+2 -2
View File
@@ -172,7 +172,7 @@ h2. {anchor:fancy-list-markers}Fancy list markers
# begins with 2
# and now 3
with a continuation
## sublist with roman numerals, starting with 4
## sublist with roman numerals starting with i.
## more items
### a subsublist
### a subsublist
@@ -181,7 +181,7 @@ Nesting:
# Upper Alpha
## Upper Roman.
### Decimal start with 6
### Decimal start with 1
#### Lower alpha with paren
Autonumbering:
+3 -5
View File
@@ -432,10 +432,9 @@ Same thing but with paragraphs:
\begin{enumerate}
\def\labelenumii{\roman{enumii}.}
\setcounter{enumii}{3}
\tightlist
\item
sublist with roman numerals, starting with 4
sublist with roman numerals starting with i.
\item
more items
@@ -454,6 +453,7 @@ Nesting:
\begin{enumerate}
\def\labelenumi{\Alph{enumi}.}
\setcounter{enumi}{3}
\tightlist
\item
Upper Alpha
@@ -466,14 +466,12 @@ Nesting:
\begin{enumerate}
\def\labelenumiii{(\arabic{enumiii})}
\setcounter{enumiii}{5}
\tightlist
\item
Decimal start with 6
Decimal start with 1
\begin{enumerate}
\def\labelenumiv{\alph{enumiv})}
\setcounter{enumiv}{2}
\tightlist
\item
Lower alpha with paren
+7 -7
View File
@@ -254,9 +254,9 @@ and now 3
.RS 4
.PP
with a continuation
.IP "iv." 4
sublist with roman numerals, starting with 4
.IP " v." 4
.IP " i." 4
sublist with roman numerals starting with i.
.IP "ii." 4
more items
.RS 4
.IP "(A)" 4
@@ -267,16 +267,16 @@ a subsublist
.RE
.PP
Nesting:
.IP "A." 3
.IP "D." 3
Upper Alpha
.RS 4
.IP "I." 3
Upper Roman.
.RS 4
.IP "(6)" 4
Decimal start with 6
.IP "(1)" 4
Decimal start with 1
.RS 4
.IP "c)" 3
.IP "a)" 3
Lower alpha with paren
.RE
.RE
+5 -5
View File
@@ -230,17 +230,17 @@ Same thing but with paragraphs:
with a continuation
iv. sublist with roman numerals, starting with 4
v. more items
i. sublist with roman numerals starting with i.
ii. more items
(A) a subsublist
(B) a subsublist
Nesting:
A. Upper Alpha
D. Upper Alpha
I. Upper Roman.
(6) Decimal start with 6
c) Lower alpha with paren
(1) Decimal start with 1
a) Lower alpha with paren
Autonumbering:
+5 -5
View File
@@ -246,17 +246,17 @@ Same thing but with paragraphs:
with a continuation
iv. sublist with roman numerals, starting with 4
v. more items
i. sublist with roman numerals starting with i.
ii. more items
A) a subsublist
B) a subsublist
Nesting:
A. Upper Alpha
D. Upper Alpha
I. Upper Roman.
6) Decimal start with 6
c) Lower alpha with paren
1) Decimal start with 1
a) Lower alpha with paren
Autonumbering:
+6 -6
View File
@@ -216,8 +216,8 @@ Same thing but with paragraphs:
<li><p>begins with 2</p></li>
<li><p>and now 3</p>
<p>with a continuation</p>
<ol start="4" style="list-style-type: lower-roman;">
<li>sublist with roman numerals, starting with 4</li>
<ol style="list-style-type: lower-roman;">
<li>sublist with roman numerals starting with i.</li>
<li>more items
<ol style="list-style-type: upper-alpha;">
<li>a subsublist</li>
@@ -225,13 +225,13 @@ Same thing but with paragraphs:
Nesting:
<ol style="list-style-type: upper-alpha;">
<ol start="4" style="list-style-type: upper-alpha;">
<li>Upper Alpha
<ol style="list-style-type: upper-roman;">
<li>Upper Roman.
<ol start="6" style="list-style-type: decimal;">
<li>Decimal start with 6
<ol start="3" style="list-style-type: lower-alpha;">
<ol style="list-style-type: decimal;">
<li>Decimal start with 1
<ol style="list-style-type: lower-alpha;">
<li>Lower alpha with paren</li></ol></li></ol></li></ol></li></ol>
Autonumbering:
+7 -7
View File
@@ -394,9 +394,9 @@ and now 3
.RS 5
.LP
with a continuation
.IP " iv." 5
sublist with roman numerals, starting with 4
.IP " v." 5
.IP " i." 5
sublist with roman numerals starting with i.
.IP " ii." 5
more items
.RS 5
.IP " (A)" 5
@@ -407,16 +407,16 @@ a subsublist
.RE
.LP
Nesting:
.IP " A." 4
.IP " D." 4
Upper Alpha
.RS 4
.IP " I." 4
Upper Roman.
.RS 4
.IP " (6)" 5
Decimal start with 6
.IP " (1)" 5
Decimal start with 1
.RS 5
.IP " c)" 4
.IP " a)" 4
Lower alpha with paren
.RE
.RE
+7 -7
View File
@@ -223,17 +223,17 @@ Same thing but with paragraphs:
with a continuation
iv. sublist with roman numerals, starting with 4
v. more items
A. a subsublist
B. a subsublist
i. sublist with roman numerals starting with i.
ii. more items
A. a subsublist
B. a subsublist
Nesting:
A. Upper Alpha
D. Upper Alpha
I. Upper Roman.
6. Decimal start with 6
c. Lower alpha with paren
1. Decimal start with 1
a. Lower alpha with paren
Autonumbering:
+7 -7
View File
@@ -572,7 +572,7 @@ Pandoc
, Para
[ Str "with" , Space , Str "a" , Space , Str "continuation" ]
, OrderedList
( 4 , LowerRoman , Period )
( 1 , LowerRoman , Period )
[ [ Plain
[ Str "sublist"
, Space
@@ -580,13 +580,13 @@ Pandoc
, Space
, Str "roman"
, Space
, Str "numerals,"
, Str "numerals"
, SoftBreak
, Str "starting"
, Space
, Str "with"
, Space
, Str "4"
, Str "i."
]
]
, [ Plain [ Str "more" , Space , Str "items" ]
@@ -601,13 +601,13 @@ Pandoc
]
, Para [ Str "Nesting:" ]
, OrderedList
( 1 , UpperAlpha , Period )
( 4 , UpperAlpha , Period )
[ [ Plain [ Str "Upper" , Space , Str "Alpha" ]
, OrderedList
( 1 , UpperRoman , Period )
[ [ Plain [ Str "Upper" , Space , Str "Roman." ]
, OrderedList
( 6 , Decimal , TwoParens )
( 1 , Decimal , TwoParens )
[ [ Plain
[ Str "Decimal"
, Space
@@ -615,10 +615,10 @@ Pandoc
, Space
, Str "with"
, Space
, Str "6"
, Str "1"
]
, OrderedList
( 3 , LowerAlpha , OneParen )
( 1 , LowerAlpha , OneParen )
[ [ Plain
[ Str "Lower"
, Space
+6 -6
View File
@@ -523,10 +523,10 @@ list markers<text:bookmark-end text:name="fancy-list-markers" /></text:h>
<text:list-item>
<text:p text:style-name="List_20_Number">and now 3</text:p>
<text:p text:style-name="List_20_Number">with a continuation</text:p>
<text:list text:style-name="Pandoc_5f_Numbering_5f_2" text:start-value="4">
<text:list text:style-name="Pandoc_5f_Numbering_5f_2">
<text:list-item>
<text:p text:style-name="List_20_Number_20_Tight">sublist with roman
numerals, starting with 4</text:p>
numerals starting with i.</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="List_20_Number_20_Tight">more items</text:p>
@@ -545,17 +545,17 @@ list markers<text:bookmark-end text:name="fancy-list-markers" /></text:h>
</text:list-item>
</text:list>
<text:p text:style-name="First_20_paragraph">Nesting:</text:p>
<text:list text:style-name="Pandoc_5f_Numbering_5f_4">
<text:list text:style-name="Pandoc_5f_Numbering_5f_4" text:start-value="4">
<text:list-item>
<text:p text:style-name="List_20_Number_20_Tight">Upper Alpha</text:p>
<text:list text:style-name="Pandoc_5f_Numbering_5f_5">
<text:list-item>
<text:p text:style-name="List_20_Number_20_Tight">Upper Roman.</text:p>
<text:list text:style-name="Pandoc_5f_Numbering_5f_1" text:start-value="6">
<text:list text:style-name="Pandoc_5f_Numbering_5f_1">
<text:list-item>
<text:p text:style-name="List_20_Number_20_Tight">Decimal start with
6</text:p>
<text:list text:style-name="Pandoc_5f_Numbering_5f_6" text:start-value="3">
1</text:p>
<text:list text:style-name="Pandoc_5f_Numbering_5f_6">
<text:list-item>
<text:p text:style-name="List_20_Number_20_Tight">Lower alpha
with paren</text:p>
+1 -1
View File
@@ -39,7 +39,7 @@
</outline>
<outline text="Tabs and spaces" _note="- this is a list item indented with tabs&#10;&#10;- this is a list item indented with spaces&#10;&#10; - this is an example list item indented with tabs&#10;&#10; - this is an example list item indented with spaces">
</outline>
<outline text="Fancy list markers" _note="(2) begins with 2&#10;&#10;(3) and now 3&#10;&#10; with a continuation&#10;&#10; iv. sublist with roman numerals, starting with 4&#10; v. more items&#10; (A) a subsublist&#10; (B) a subsublist&#10;&#10;Nesting:&#10;&#10;A. Upper Alpha&#10; I. Upper Roman.&#10; (6) Decimal start with 6&#10; c) Lower alpha with paren&#10;&#10;Autonumbering:&#10;&#10;1. Autonumber.&#10;2. More.&#10; 1. Nested.&#10;&#10;Should not be a list item:&#10;&#10;M.A. 2007&#10;&#10;B. Williams&#10;&#10;--------------------------------------------------------------------------------">
<outline text="Fancy list markers" _note="(2) begins with 2&#10;&#10;(3) and now 3&#10;&#10; with a continuation&#10;&#10; i. sublist with roman numerals starting with i.&#10; ii. more items&#10; (A) a subsublist&#10; (B) a subsublist&#10;&#10;Nesting:&#10;&#10;D. Upper Alpha&#10; I. Upper Roman.&#10; (1) Decimal start with 1&#10; a) Lower alpha with paren&#10;&#10;Autonumbering:&#10;&#10;1. Autonumber.&#10;2. More.&#10; 1. Nested.&#10;&#10;Should not be a list item:&#10;&#10;M.A. 2007&#10;&#10;B. Williams&#10;&#10;--------------------------------------------------------------------------------">
</outline>
</outline>
<outline text="Definition Lists" _note="Tight using spaces:&#10;&#10;apple&#10;: red fruit&#10;&#10;orange&#10;: orange fruit&#10;&#10;banana&#10;: yellow fruit&#10;&#10;Tight using tabs:&#10;&#10;apple&#10;: red fruit&#10;&#10;orange&#10;: orange fruit&#10;&#10;banana&#10;: yellow fruit&#10;&#10;Loose:&#10;&#10;apple&#10;&#10;: red fruit&#10;&#10;orange&#10;&#10;: orange fruit&#10;&#10;banana&#10;&#10;: yellow fruit&#10;&#10;Multiple blocks with italics:&#10;&#10;*apple*&#10;&#10;: red fruit&#10;&#10; contains seeds, crisp, pleasant to taste&#10;&#10;*orange*&#10;&#10;: orange fruit&#10;&#10; { orange code block }&#10;&#10; &gt; orange block quote&#10;&#10;Multiple definitions, tight:&#10;&#10;apple&#10;: red fruit&#10;: computer&#10;&#10;orange&#10;: orange fruit&#10;: bank&#10;&#10;Multiple definitions, loose:&#10;&#10;apple&#10;&#10;: red fruit&#10;&#10;: computer&#10;&#10;orange&#10;&#10;: orange fruit&#10;&#10;: bank&#10;&#10;Blank line after term, indented marker, alternate markers:&#10;&#10;apple&#10;&#10;: red fruit&#10;&#10;: computer&#10;&#10;orange&#10;&#10;: orange fruit&#10;&#10; 1. sublist&#10; 2. sublist">
+5 -5
View File
@@ -277,17 +277,17 @@ Same thing but with paragraphs:
with a continuation
4. [@4] sublist with roman numerals, starting with 4
5. more items
1. sublist with roman numerals starting with i.
2. more items
1) a subsublist
2) a subsublist
Nesting:
1. Upper Alpha
4. [@4] Upper Alpha
1. Upper Roman.
6) [@6] Decimal start with 6
3) [@3] Lower alpha with paren
1) Decimal start with 1
1) Lower alpha with paren
Autonumbering:
+5 -5
View File
@@ -226,17 +226,17 @@ Fancy list markers
with a continuation
iv. sublist with roman numerals, starting with 4
v. more items
i. sublist with roman numerals starting with i.
ii. more items
(A) a subsublist
(B) a subsublist
Nesting:
A. Upper Alpha
D. Upper Alpha
I. Upper Roman.
(6) Decimal start with 6
c) Lower alpha with paren
(1) Decimal start with 1
a) Lower alpha with paren
Autonumbering:
+5 -5
View File
@@ -266,21 +266,21 @@ Fancy list markers
with a continuation
iv. sublist with roman numerals, starting with 4
v. more items
i. sublist with roman numerals starting with i.
ii. more items
(A) a subsublist
(B) a subsublist
Nesting:
A. Upper Alpha
D. Upper Alpha
I. Upper Roman.
(6) Decimal start with 6
(1) Decimal start with 1
c) Lower alpha with paren
a) Lower alpha with paren
Autonumbering:
+9 -9
View File
@@ -22,12 +22,12 @@
{\list\listtemplateid20{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listname ;}\listid20}
{\list\listtemplateid21{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid21}
{\list\listtemplateid22{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat2\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listname ;}\listid22}
{\list\listtemplateid23{\listlevel\levelnfc2\levelnfcn2\leveljc0\leveljcn0\levelfollow0\levelstartat4\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listlevel\levelnfc2\levelnfcn2\leveljc0\leveljcn0\levelfollow0\levelstartat4\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid23}
{\list\listtemplateid23{\listlevel\levelnfc2\levelnfcn2\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listlevel\levelnfc2\levelnfcn2\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid23}
{\list\listtemplateid24{\listlevel\levelnfc3\levelnfcn3\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listlevel\levelnfc3\levelnfcn3\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li720\lin720 }{\listlevel\levelnfc3\levelnfcn3\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li1080\lin1080 }{\listname ;}\listid24}
{\list\listtemplateid25{\listlevel\levelnfc3\levelnfcn3\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listname ;}\listid25}
{\list\listtemplateid25{\listlevel\levelnfc3\levelnfcn3\leveljc0\leveljcn0\levelfollow0\levelstartat4\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listname ;}\listid25}
{\list\listtemplateid26{\listlevel\levelnfc1\levelnfcn1\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listlevel\levelnfc1\levelnfcn1\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid26}
{\list\listtemplateid27{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat6\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat6\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li720\lin720 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat6\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li1080\lin1080 }{\listname ;}\listid27}
{\list\listtemplateid28{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat3\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat3\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li720\lin720 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat3\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li1080\lin1080 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat3\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li1440\lin1440 }{\listname ;}\listid28}
{\list\listtemplateid27{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li720\lin720 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li1080\lin1080 }{\listname ;}\listid27}
{\list\listtemplateid28{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li720\lin720 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li1080\lin1080 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li1440\lin1440 }{\listname ;}\listid28}
{\list\listtemplateid29{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listname ;}\listid29}
{\list\listtemplateid30{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid30}
{\list\listtemplateid31{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\u8226 ?;}{\levelnumbers;}\fi-360\li360\lin360 }{\listname ;}\listid31}
@@ -172,15 +172,15 @@ These should not be escaped: \\$ \\\\ \\> \\[ \\\{\par}
{\pard \ql \f0 \sa180 \li360 \fi-360\ls22\ilvl0\tx360 {\listtext\tab (2)\tab} begins with 2\par}
{\pard \ql \f0 \sa180 \li360 \fi-360\ls22\ilvl0\tx360 {\listtext\tab (3)\tab} and now 3\par}
{\pard \ql \f0 \sa180 \li360 \ls22\ilvl0\fi0 with a continuation\par}
{\pard \ql \f0 \sa0 \li720 \fi-360\ls23\ilvl1\tx360 {\listtext\tab iv.\tab} sublist with roman numerals, starting with 4\par}
{\pard \ql \f0 \sa0 \li720 \fi-360\ls23\ilvl1\tx360 {\listtext\tab v.\tab} more items\par}
{\pard \ql \f0 \sa0 \li720 \fi-360\ls23\ilvl1\tx360 {\listtext\tab i.\tab} sublist with roman numerals starting with i.\par}
{\pard \ql \f0 \sa0 \li720 \fi-360\ls23\ilvl1\tx360 {\listtext\tab ii.\tab} more items\par}
{\pard \ql \f0 \sa0 \li1080 \fi-360\ls24\ilvl2\tx360 {\listtext\tab (A)\tab} a subsublist\par}
{\pard \ql \f0 \sa0 \li1080 \fi-360\ls24\ilvl2\tx360 {\listtext\tab (B)\tab} a subsublist\sa180\sa180\sa180\par}
{\pard \ql \f0 \sa180 \li0 \fi0 Nesting:\par}
{\pard \ql \f0 \sa0 \li360 \fi-360\ls25\ilvl0\tx360 {\listtext\tab A.\tab} Upper Alpha\par}
{\pard \ql \f0 \sa0 \li360 \fi-360\ls25\ilvl0\tx360 {\listtext\tab D.\tab} Upper Alpha\par}
{\pard \ql \f0 \sa0 \li720 \fi-360\ls26\ilvl1\tx360 {\listtext\tab I.\tab} Upper Roman.\par}
{\pard \ql \f0 \sa0 \li1080 \fi-360\ls27\ilvl2\tx360 {\listtext\tab (6)\tab} Decimal start with 6\par}
{\pard \ql \f0 \sa0 \li1440 \fi-360\ls28\ilvl3\tx360 {\listtext\tab c)\tab} Lower alpha with paren\sa180\sa180\sa180\sa180\par}
{\pard \ql \f0 \sa0 \li1080 \fi-360\ls27\ilvl2\tx360 {\listtext\tab (1)\tab} Decimal start with 1\par}
{\pard \ql \f0 \sa0 \li1440 \fi-360\ls28\ilvl3\tx360 {\listtext\tab a)\tab} Lower alpha with paren\sa180\sa180\sa180\sa180\par}
{\pard \ql \f0 \sa180 \li0 \fi0 Autonumbering:\par}
{\pard \ql \f0 \sa0 \li360 \fi-360\ls29\ilvl0\tx360 {\listtext\tab 1.\tab} Autonumber.\par}
{\pard \ql \f0 \sa0 \li360 \fi-360\ls29\ilvl0\tx360 {\listtext\tab 2.\tab} More.\par}
+6 -6
View File
@@ -350,8 +350,8 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<p>and now 3</p>
<p>with a continuation</p>
<list type="ordered:lowerroman">
<item n="4">
<p>sublist with roman numerals, starting with 4</p>
<item>
<p>sublist with roman numerals starting with i.</p>
</item>
<item>
<p>more items</p>
@@ -369,16 +369,16 @@ These should not be escaped: \$ \\ \&gt; \[ \{
</list>
<p>Nesting:</p>
<list type="ordered:upperalpha">
<item>
<item n="4">
<p>Upper Alpha</p>
<list type="ordered:upperroman">
<item>
<p>Upper Roman.</p>
<list type="ordered:arabic">
<item n="6">
<p>Decimal start with 6</p>
<item>
<p>Decimal start with 1</p>
<list type="ordered:loweralpha">
<item n="3">
<item>
<p>Lower alpha with paren</p>
</item>
</list>
+6 -6
View File
@@ -444,9 +444,9 @@ and now 3
with a continuation
@enumerate 4
@enumerate
@item
sublist with roman numerals, starting with 4
sublist with roman numerals starting with i.
@item
more items
@enumerate A
@@ -462,16 +462,16 @@ a subsublist
Nesting:
@enumerate A
@enumerate D
@item
Upper Alpha
@enumerate
@item
Upper Roman.
@enumerate 6
@enumerate
@item
Decimal start with 6
@enumerate c
Decimal start with 1
@enumerate a
@item
Lower alpha with paren
@end enumerate
+6 -6
View File
@@ -215,8 +215,8 @@ h2(#fancy-list-markers). Fancy list markers
<li><p>begins with 2</p></li>
<li><p>and now 3</p>
<p>with a continuation</p>
<ol start="4" style="list-style-type: lower-roman;">
<li>sublist with roman numerals, starting with 4</li>
<ol style="list-style-type: lower-roman;">
<li>sublist with roman numerals starting with i.</li>
<li>more items
<ol style="list-style-type: upper-alpha;">
<li>a subsublist</li>
@@ -229,13 +229,13 @@ h2(#fancy-list-markers). Fancy list markers
Nesting:
<ol style="list-style-type: upper-alpha;">
<ol start="4" style="list-style-type: upper-alpha;">
<li>Upper Alpha
<ol style="list-style-type: upper-roman;">
<li>Upper Roman.
<ol start="6" style="list-style-type: decimal;">
<li>Decimal start with 6
<ol start="3" style="list-style-type: lower-alpha;">
<ol style="list-style-type: decimal;">
<li>Decimal start with 1
<ol style="list-style-type: lower-alpha;">
<li>Lower alpha with paren</li>
</ol>
</li>
+6 -6
View File
@@ -396,8 +396,8 @@ Same thing but with paragraphs:
with a continuation
#block[
#set enum(numbering: "i.", start: 4)
+ sublist with roman numerals, starting with 4
#set enum(numbering: "i.", start: 1)
+ sublist with roman numerals starting with i.
+ more items
#block[
#set enum(numbering: "(A)", start: 1)
@@ -410,16 +410,16 @@ Same thing but with paragraphs:
Nesting:
#block[
#set enum(numbering: "A.", start: 1)
#set enum(numbering: "A.", start: 4)
+ Upper Alpha
#block[
#set enum(numbering: "I.", start: 1)
+ Upper Roman.
#block[
#set enum(numbering: "(1)", start: 6)
+ Decimal start with 6
#set enum(numbering: "(1)", start: 1)
+ Decimal start with 1
#block[
#set enum(numbering: "a)", start: 3)
#set enum(numbering: "a)", start: 1)
+ Lower alpha with paren
]
]
+7 -7
View File
@@ -245,17 +245,17 @@ Fancy list markers *fancy-list-marker
with a continuation
iv. sublist with roman numerals, starting with 4
v. more items
(A) a subsublist
(B) a subsublist
i. sublist with roman numerals starting with i.
ii. more items
(A) a subsublist
(B) a subsublist
Nesting:
A. Upper Alpha
D. Upper Alpha
I. Upper Roman.
(6) Decimal start with 6
c) Lower alpha with paren
(1) Decimal start with 1
a) Lower alpha with paren
Autonumbering:
+2 -2
View File
@@ -215,7 +215,7 @@ Same thing but with paragraphs:
with a continuation
11. sublist with roman numerals, starting with 4
11. sublist with roman numerals starting with i.
11. more items
111. a subsublist
111. a subsublist
@@ -224,7 +224,7 @@ Nesting:
1. Upper Alpha
11. Upper Roman.
111. Decimal start with 6
111. Decimal start with 1
1111. Lower alpha with paren
Autonumbering:
+2 -2
View File
@@ -211,7 +211,7 @@ Same thing but with paragraphs:
1. begins with 2
2. and now 3
with a continuation
1. sublist with roman numerals, starting with 4
1. sublist with roman numerals starting with i.
2. more items
1. a subsublist
2. a subsublist
@@ -220,7 +220,7 @@ Nesting:
1. Upper Alpha
1. Upper Roman.
1. Decimal start with 6
1. Decimal start with 1
1. Lower alpha with paren
Autonumbering: