mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 00:15:44 +00:00
Docx reader: handle figures in indented paragraphs.
Previously these were omitted. Closes #11028.
This commit is contained in:
@@ -810,6 +810,8 @@ bodyPartToBlocks (Captioned parstyle parparts bpart) = do
|
||||
-> singleton $ Figure attr' capt [Plain im]
|
||||
[Div attr bls']
|
||||
-> toCaptioned (attr <> attr') bls'
|
||||
[BlockQuote bls']
|
||||
-> toCaptioned attr' bls'
|
||||
_ -> captContents
|
||||
pure $ toCaptioned nullAttr (toList bs)
|
||||
bodyPartToBlocks (Tbl _ _ _ _ []) =
|
||||
|
||||
Reference in New Issue
Block a user