diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-08-08 02:43:15 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-08-08 02:43:15 +0000 |
commit | e814a3f6d23f640b1aed5b7cb949459d514a3e33 (patch) | |
tree | 4c9f89c85d5e050f27b4a732c7bad0542b5c9928 /tests/writer.docbook | |
parent | 22a65385571737b6232debac884184d6504222fc (diff) | |
download | pandoc-e814a3f6d23f640b1aed5b7cb949459d514a3e33.tar.gz |
Major change in the way ordered lists are handled:
+ The changes are documented in README, under Lists.
+ The OrderedList block element now stores information
about list number style, list number delimiter, and
starting number.
+ The readers parse this information, when possible.
+ The writers use this information to style ordered
lists.
+ Test suites have been changed accordingly.
Motivation: It's often useful to start lists with
numbers other than 1, and to have control over the
style of the list.
Added to Text.Pandoc.Shared:
+ camelCaseToHyphenated
+ toRomanNumeral
+ anyOrderedListMarker
+ orderedListMarker
+ orderedListMarkers
Added to Text.Pandoc.ParserCombinators:
+ charsInBalanced'
+ withHorizDisplacement
+ romanNumeral
RST writer:
+ Force blank line before lists, so that sublists will be handled
correctly.
LaTeX reader:
+ Fixed bug in parsing of footnotes containing multiple paragraphs,
introduced by use of charsInBalanced. Fix: use charsInBalanced'
instead.
LaTeX header:
+ use mathletters option in ucs package, so that basic unicode Greek
letters will work properly.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@834 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/writer.docbook')
-rw-r--r-- | tests/writer.docbook | 115 |
1 files changed, 105 insertions, 10 deletions
diff --git a/tests/writer.docbook b/tests/writer.docbook index 596380f3f..390c9f4fe 100644 --- a/tests/writer.docbook +++ b/tests/writer.docbook @@ -95,7 +95,7 @@ sub status { <para> A list: </para> - <orderedlist> + <orderedlist numeration="arabic"> <listitem> <para> item one @@ -138,7 +138,7 @@ sub status { </screen> </blockquote> <blockquote> - <orderedlist> + <orderedlist numeration="arabic"> <listitem> <para> do laundry @@ -321,7 +321,7 @@ These should not be escaped: \$ \\ \> \[ \{ <para> Tight: </para> - <orderedlist> + <orderedlist numeration="arabic"> <listitem> <para> First @@ -341,7 +341,7 @@ These should not be escaped: \$ \\ \> \[ \{ <para> and: </para> - <orderedlist> + <orderedlist numeration="arabic"> <listitem> <para> One @@ -361,7 +361,7 @@ These should not be escaped: \$ \\ \> \[ \{ <para> Loose using tabs: </para> - <orderedlist> + <orderedlist numeration="arabic"> <listitem> <para> First @@ -381,7 +381,7 @@ These should not be escaped: \$ \\ \> \[ \{ <para> and using spaces: </para> - <orderedlist> + <orderedlist numeration="arabic"> <listitem> <para> One @@ -401,7 +401,7 @@ These should not be escaped: \$ \\ \> \[ \{ <para> Multiple paragraphs: </para> - <orderedlist> + <orderedlist numeration="arabic"> <listitem> <para> Item 1, graf one. @@ -449,7 +449,7 @@ These should not be escaped: \$ \\ \> \[ \{ <para> Here's another: </para> - <orderedlist> + <orderedlist numeration="arabic"> <listitem> <para> First @@ -486,7 +486,7 @@ These should not be escaped: \$ \\ \> \[ \{ <para> Same thing but with paragraphs: </para> - <orderedlist> + <orderedlist numeration="arabic"> <listitem> <para> First @@ -548,6 +548,101 @@ These should not be escaped: \$ \\ \> \[ \{ </listitem> </itemizedlist> </section> + <section> + <title>Fancy list markers</title> + <orderedlist numeration="arabic"> + <listitem override="2"> + <para> + begins with 2 + </para> + </listitem> + <listitem> + <para> + and now 3 + </para> + <para> + with a continuation + </para> + <orderedlist numeration="lowerroman"> + <listitem override="4"> + <para> + sublist with roman numerals, starting with 4 + </para> + </listitem> + <listitem> + <para> + more items + </para> + <orderedlist numeration="upperalpha"> + <listitem> + <para> + a subsublist + </para> + </listitem> + <listitem> + <para> + a subsublist + </para> + </listitem> + </orderedlist> + </listitem> + </orderedlist> + </listitem> + </orderedlist> + <para> + Nesting: + </para> + <orderedlist numeration="upperalpha"> + <listitem> + <para> + Upper Alpha + </para> + <orderedlist numeration="upperroman"> + <listitem> + <para> + Upper Roman. + </para> + <orderedlist numeration="arabic"> + <listitem override="6"> + <para> + Decimal start with 6 + </para> + <orderedlist numeration="loweralpha"> + <listitem override="3"> + <para> + Lower alpha with paren + </para> + </listitem> + </orderedlist> + </listitem> + </orderedlist> + </listitem> + </orderedlist> + </listitem> + </orderedlist> + <para> + Autonumbering: + </para> + <orderedlist> + <listitem> + <para> + Autonumber. + </para> + </listitem> + <listitem> + <para> + More. + </para> + <orderedlist> + <listitem> + <para> + Nested. + </para> + </listitem> + </orderedlist> + </listitem> + </orderedlist> + </section> </section> <section> <title>Definition Lists</title> @@ -1158,7 +1253,7 @@ or here: <http://example.com/> </footnote> </para> </blockquote> - <orderedlist> + <orderedlist numeration="arabic"> <listitem> <para> And in list |