mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-29 17:52:33 +08:00
Textile Reader:
- Adding a Parser to look for ordered list start attribute numbers if any - Add command test for ordered list start attributes (#2465) - Cleanup and formatting
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
```
|
||||
% pandoc -f textile -t native
|
||||
This list starts:
|
||||
|
||||
# one
|
||||
# two
|
||||
|
||||
This list should continue at 3:
|
||||
|
||||
#3 three
|
||||
# four
|
||||
|
||||
This list should restart at 1:
|
||||
|
||||
# one again
|
||||
# two again
|
||||
^D
|
||||
[ Para
|
||||
[ Str "This" , Space , Str "list" , Space , Str "starts:" ]
|
||||
, OrderedList
|
||||
( 1 , DefaultStyle , DefaultDelim )
|
||||
[ [ Plain [ Str "one" ] ] , [ Plain [ Str "two" ] ] ]
|
||||
, Para
|
||||
[ Str "This"
|
||||
, Space
|
||||
, Str "list"
|
||||
, Space
|
||||
, Str "should"
|
||||
, Space
|
||||
, Str "continue"
|
||||
, Space
|
||||
, Str "at"
|
||||
, Space
|
||||
, Str "3:"
|
||||
]
|
||||
, OrderedList
|
||||
( 3 , DefaultStyle , DefaultDelim )
|
||||
[ [ Plain [ Str "three" ] ] , [ Plain [ Str "four" ] ] ]
|
||||
, Para
|
||||
[ Str "This"
|
||||
, Space
|
||||
, Str "list"
|
||||
, Space
|
||||
, Str "should"
|
||||
, Space
|
||||
, Str "restart"
|
||||
, Space
|
||||
, Str "at"
|
||||
, Space
|
||||
, Str "1:"
|
||||
]
|
||||
, OrderedList
|
||||
( 1 , DefaultStyle , DefaultDelim )
|
||||
[ [ Plain [ Str "one" , Space , Str "again" ] ]
|
||||
, [ Plain [ Str "two" , Space , Str "again" ] ]
|
||||
]
|
||||
]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user