aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorvkraven <[email protected]>2022-11-26 20:49:49 -0500
committerJohn MacFarlane <[email protected]>2022-11-28 19:30:20 -0700
commitb6622c07b6db097ad50ee2d9ae0ec4d7ba991615 (patch)
tree4e5324f95aa58b20cc0443716a8e07b0e36871cb /test/command
parent2008a18f0e4ae354905bd761822735b8524aeae5 (diff)
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
Diffstat (limited to 'test/command')
-rw-r--r--test/command/2465.md59
1 files changed, 59 insertions, 0 deletions
diff --git a/test/command/2465.md b/test/command/2465.md
new file mode 100644
index 000000000..610e3510e
--- /dev/null
+++ b/test/command/2465.md
@@ -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" ] ]
+ ]
+]
+```
+