From e814a3f6d23f640b1aed5b7cb949459d514a3e33 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Wed, 8 Aug 2007 02:43:15 +0000 Subject: 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 --- tests/writer.docbook | 115 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 105 insertions(+), 10 deletions(-) (limited to 'tests/writer.docbook') 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 { A list: - + item one @@ -138,7 +138,7 @@ sub status {
- + do laundry @@ -321,7 +321,7 @@ These should not be escaped: \$ \\ \> \[ \{ Tight: - + First @@ -341,7 +341,7 @@ These should not be escaped: \$ \\ \> \[ \{ and: - + One @@ -361,7 +361,7 @@ These should not be escaped: \$ \\ \> \[ \{ Loose using tabs: - + First @@ -381,7 +381,7 @@ These should not be escaped: \$ \\ \> \[ \{ and using spaces: - + One @@ -401,7 +401,7 @@ These should not be escaped: \$ \\ \> \[ \{ Multiple paragraphs: - + Item 1, graf one. @@ -449,7 +449,7 @@ These should not be escaped: \$ \\ \> \[ \{ Here's another: - + First @@ -486,7 +486,7 @@ These should not be escaped: \$ \\ \> \[ \{ Same thing but with paragraphs: - + First @@ -548,6 +548,101 @@ These should not be escaped: \$ \\ \> \[ \{ +
+ Fancy list markers + + + + begins with 2 + + + + + and now 3 + + + with a continuation + + + + + sublist with roman numerals, starting with 4 + + + + + more items + + + + + a subsublist + + + + + a subsublist + + + + + + + + + Nesting: + + + + + Upper Alpha + + + + + Upper Roman. + + + + + Decimal start with 6 + + + + + Lower alpha with paren + + + + + + + + + + + Autonumbering: + + + + + Autonumber. + + + + + More. + + + + + Nested. + + + + + +
Definition Lists @@ -1158,7 +1253,7 @@ or here: <http://example.com/>
- + And in list -- cgit v1.2.3