From f64183fbbfa478a07e66db37736acf1817319b82 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 19 Sep 2025 22:10:38 +0200 Subject: Docx reader: handle figures in indented paragraphs. Previously these were omitted. Closes #11028. --- src/Text/Pandoc/Readers/Docx.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Text/Pandoc/Readers/Docx.hs b/src/Text/Pandoc/Readers/Docx.hs index b00dbd247..2852defc7 100644 --- a/src/Text/Pandoc/Readers/Docx.hs +++ b/src/Text/Pandoc/Readers/Docx.hs @@ -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 _ _ _ _ []) = -- cgit v1.2.3