Skip to content

Commit 56a671a

Browse files
committed
Use SimpleFigure in ZimWiki writer.
1 parent 4421c88 commit 56a671a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Text/Pandoc/Writers/ZimWiki.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ blockToZimWiki opts (Div _attrs bs) = do
8686

8787
blockToZimWiki opts (Plain inlines) = inlineListToZimWiki opts inlines
8888

89-
-- title beginning with fig: indicates that the image is a figure
9089
-- ZimWiki doesn't support captions - so combine together alt and caption into alt
91-
blockToZimWiki opts (Para [Image attr txt (src,T.stripPrefix "fig:" -> Just tit)]) = do
90+
blockToZimWiki opts (SimpleFigure attr txt src tit) = do
9291
capt <- if null txt
9392
then return ""
9493
else (" " <>) `fmap` inlineListToZimWiki opts txt

0 commit comments

Comments
 (0)