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 ca0db0c commit 33fa95fCopy full SHA for 33fa95f
src/Text/Pandoc/Writers/ZimWiki.hs
@@ -1,5 +1,4 @@
1
{-# LANGUAGE OverloadedStrings #-}
2
-{-# LANGUAGE ViewPatterns #-}
3
{- |
4
Module : Text.Pandoc.Writers.ZimWiki
5
Copyright : © 2008-2021 John MacFarlane,
@@ -86,9 +85,8 @@ blockToZimWiki opts (Div _attrs bs) = do
86
85
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