Skip to content

Commit

Permalink
Use simpleFigureWith in RTS reader
Browse files Browse the repository at this point in the history
  • Loading branch information
argent0 committed Jun 16, 2021
1 parent 626b2aa commit 9648414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Text/Pandoc/Readers/RST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,8 @@ directive' = do
"figure" -> do
(caption, legend) <- parseFromString' extractCaption body'
let src = escapeURI $ trim top
return $ B.para (B.imageWith (imgAttr "figclass") src "fig:"
caption) <> legend
return $ B.simpleFigureWith
(imgAttr "figclass") (B.toList caption) src "" <> legend
"image" -> do
let src = escapeURI $ trim top
let alt = B.str $ maybe "image" trim $ lookup "alt" fields
Expand Down

0 comments on commit 9648414

Please sign in to comment.