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 626b2aa commit 9648414Copy full SHA for 9648414
src/Text/Pandoc/Readers/RST.hs
@@ -724,8 +724,8 @@ directive' = do
724
"figure" -> do
725
(caption, legend) <- parseFromString' extractCaption body'
726
let src = escapeURI $ trim top
727
- return $ B.para (B.imageWith (imgAttr "figclass") src "fig:"
728
- caption) <> legend
+ return $ B.simpleFigureWith
+ (imgAttr "figclass") (B.toList caption) src "" <> legend
729
"image" -> do
730
731
let alt = B.str $ maybe "image" trim $ lookup "alt" fields
0 commit comments