mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-13 21:07:08 +00:00
9312f1da1b
The reader treated every list paragraph as a new list item, so a list
item containing several paragraphs was split into one item per
paragraph. In the RTF list model a new item is marked by a
`{\listtext ...}` destination group; a list paragraph lacking one is a
continuation of the current item.
Track whether a `{\listtext}` group was seen (`sListText`) and, in
`emitBlocks`, append a continuation paragraph (no `\listtext`) to the
current item rather than starting a new one.
Adds a `list_multiparagraph` reader test.
Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
524 B
Plaintext
26 lines
524 B
Plaintext
Pandoc
|
|
Meta { unMeta = fromList [] }
|
|
[ BulletList
|
|
[ [ Para
|
|
[ Str "First"
|
|
, Space
|
|
, Str "item,"
|
|
, Space
|
|
, Str "paragraph"
|
|
, Space
|
|
, Str "one."
|
|
]
|
|
, Para
|
|
[ Str "First"
|
|
, Space
|
|
, Str "item,"
|
|
, Space
|
|
, Str "paragraph"
|
|
, Space
|
|
, Str "two."
|
|
]
|
|
]
|
|
, [ Para [ Str "Second" , Space , Str "item." ] ]
|
|
]
|
|
]
|