pandoc/test/pptx/list-level/input.native
Emily Bourke 8af15ab345 pptx: Fix list level numbering
In PowerPoint, the content of a top-level list is at the same level as
the content of a top-level paragraph – the only difference is that a
list style has been applied.

At the moment, the pptx writer increments the paragraph level on each
list, turning what should be top-level lists into second-level lists.

This commit changes that logic, only incrementing the paragraph level on
continuation paragraphs of lists.

- Fixes https://github.com/jgm/pandoc/issues/4828
- Fixes https://github.com/jgm/pandoc/issues/4663
2021-10-17 17:24:30 -07:00

20 lines
666 B
Text

[Header 1 ("slide",[],[]) [Str "Slide"]
,BulletList
[[Para [Str "Top-level"]
,Para [Str "With",Space,Str "continuation",Space,Str "paragraph"]]
,[Para [Str "Then:"]
,BulletList
[[Plain [Str "nested"]]
,[Plain [Str "list"]]
,[Plain [Str "items"]]]]]
,Header 1 ("slide-1",[],[]) [Str "Slide"]
,Para [Str "Paragraph."]
,OrderedList (1,Decimal,Period)
[[Para [Str "Top-level"]
,Para [Str "Continuation"]
,OrderedList (1,Decimal,Period)
[[Para [Str "Sub-list"]
,Para [Str "With",Space,Str "Continuation"]]
,[Para [Str "(still",Space,Str "sub-list)"]]]]
,[Para [Str "(back",Space,Str "to",Space,Str "top-level)"]]]
,Para [Str "Paragraph."]]