Skip to content

Commit b213a9a

Browse files
committed
Use SimpleFigure in DokuWiki writer.
1 parent b328670 commit b213a9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Text/Pandoc/Writers/DokuWiki.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ blockToDokuWiki opts (Plain inlines) =
109109

110110
-- title beginning with fig: indicates that the image is a figure
111111
-- dokuwiki doesn't support captions - so combine together alt and caption into alt
112-
blockToDokuWiki opts (Para [Image attr txt (src,tgt)])
113-
| Just tit <- T.stripPrefix "fig:" tgt
114-
= do
112+
blockToDokuWiki opts (SimpleFigure attr txt (src, tit)) = do
115113
capt <- if null txt
116114
then return ""
117115
else (" " <>) `fmap` inlineListToDokuWiki opts txt

0 commit comments

Comments
 (0)