Skip to content

Commit b328670

Browse files
committed
Use SimpleFigure in Docx writer.
1 parent e0f7c1b commit b328670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Text/Pandoc/Writers/Docx.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ blockToOpenXML' opts (Plain lst) = do
852852
then withParaProp prop block
853853
else block
854854
-- title beginning with fig: indicates that the image is a figure
855-
blockToOpenXML' opts (Para [Image attr alt (src,T.stripPrefix "fig:" -> Just tit)]) = do
855+
blockToOpenXML' opts (SimpleFigure attr alt (src, tit)) = do
856856
setFirstPara
857857
prop <- pStyleM $
858858
if null alt

0 commit comments

Comments
 (0)