We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4421c88 commit 56a671aCopy full SHA for 56a671a
src/Text/Pandoc/Writers/ZimWiki.hs
@@ -86,9 +86,8 @@ blockToZimWiki opts (Div _attrs bs) = do
86
87
blockToZimWiki opts (Plain inlines) = inlineListToZimWiki opts inlines
88
89
--- title beginning with fig: indicates that the image is a figure
90
-- 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
+blockToZimWiki opts (SimpleFigure attr txt src tit) = do
92
capt <- if null txt
93
then return ""
94
else (" " <>) `fmap` inlineListToZimWiki opts txt
0 commit comments