mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-29 17:52:33 +08:00
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
This commit is contained in:
@@ -232,6 +232,62 @@ These should not be escaped: \$ \\ \> \[ \{
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="fancy-list-markers"
|
||||
>Fancy list markers</h2
|
||||
><ol start="2" class="decimal"
|
||||
><li
|
||||
>begins with 2</li
|
||||
><li
|
||||
><p
|
||||
>and now 3</p
|
||||
><p
|
||||
>with a continuation</p
|
||||
><ol start="4" class="lower-roman"
|
||||
><li
|
||||
>sublist with roman numerals, starting with 4</li
|
||||
><li
|
||||
>more items<ol class="upper-alpha"
|
||||
><li
|
||||
>a subsublist</li
|
||||
><li
|
||||
>a subsublist</li
|
||||
></ol
|
||||
></li
|
||||
></ol
|
||||
></li
|
||||
></ol
|
||||
><p
|
||||
>Nesting:</p
|
||||
><ol class="upper-alpha"
|
||||
><li
|
||||
>Upper Alpha<ol class="upper-roman"
|
||||
><li
|
||||
>Upper Roman.<ol start="6" class="decimal"
|
||||
><li
|
||||
>Decimal start with 6<ol start="3" class="lower-alpha"
|
||||
><li
|
||||
>Lower alpha with paren</li
|
||||
></ol
|
||||
></li
|
||||
></ol
|
||||
></li
|
||||
></ol
|
||||
></li
|
||||
></ol
|
||||
><p
|
||||
>Autonumbering:</p
|
||||
><ol
|
||||
><li
|
||||
>Autonumber.</li
|
||||
><li
|
||||
>More.<ol
|
||||
><li
|
||||
>Nested.</li
|
||||
></ol
|
||||
></li
|
||||
></ol
|
||||
><hr
|
||||
/>
|
||||
<h2>Definition</h2>
|
||||
<dl>
|
||||
<dt>Violin</dt>
|
||||
|
||||
Reference in New Issue
Block a user