Files
pandoc/test/docx/task_list.native
John MacFarlane f5531f18a5 Docx writer: better formatting for task lists.
Task lists are now properly formatted, with no bullet.

In addition, we have removed an expensive generic traverse to
remove Space elements, and replaced it with code in
`inlinesToOpenXML`.  This should give better performance; it
also reduces XML size in the metadata, which wasn't previously
affected by the de-Spacing.

TODO: parse this in the reader so that we can have task lists round-trip.

Closes #5198.
2024-06-04 10:03:26 -07:00

41 lines
1.0 KiB
Plaintext

[ BulletList
[ [ Para [ Str "\9744" , Space , Str "Unchecked" ] ]
, [ Para [ Str "\9746" , Space , Str "Checked" ]
, Para
[ Str "with"
, Space
, Str "continuation"
, Space
, Str "paragraph"
]
]
, [ Para [ Str "\9744" , Space , Str "Unchecked" ]
, BulletList
[ [ Plain
[ Str "\9746"
, Space
, Str "Checked"
, Space
, Str "sublist"
]
, BulletList
[ [ Plain
[ Str "\9744"
, Space
, Str "Unchecked"
, Space
, Str "subsublist"
]
, OrderedList
( 1 , Decimal , Period )
[ [ Plain [ Str "Numbered" , Space , Str "child" ]
]
]
]
]
]
]
]
]
]