Skip to content

Commit e0bc1fd

Browse files
committed
Use simpleFigureWith in RTS reader
1 parent 5ae8241 commit e0bc1fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Text/Pandoc/Readers/RST.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ directive' = do
724724
"figure" -> do
725725
(caption, legend) <- parseFromString' extractCaption body'
726726
let src = escapeURI $ trim top
727-
return $ B.para (B.imageWith (imgAttr "figclass") src "fig:"
728-
caption) <> legend
727+
return $ B.simpleFigureWith
728+
(imgAttr "figclass") caption src "" <> legend
729729
"image" -> do
730730
let src = escapeURI $ trim top
731731
let alt = B.str $ maybe "image" trim $ lookup "alt" fields

0 commit comments

Comments
 (0)