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 94ef82f commit 5735c6bCopy full SHA for 5735c6b
src/Text/Pandoc/Writers/Haddock.hs
@@ -98,8 +98,7 @@ blockToHaddock opts (Plain inlines) = do
98
contents <- inlineListToHaddock opts inlines
99
return $ contents <> cr
100
-- title beginning with fig: indicates figure
101
-blockToHaddock opts (Para [Image attr alt (src,tgt)])
102
- | Just tit <- T.stripPrefix "fig:" tgt
+blockToHaddock opts (SimpleFigure attr alt (src, tit))
103
= blockToHaddock opts (Para [Image attr alt (src,tit)])
104
blockToHaddock opts (Para inlines) =
105
-- TODO: if it contains linebreaks, we need to use a @...@ block
0 commit comments