git.iko.soy/typeable/pandoc
on master help sign in
Make rst figures true figures. Closes #1168.

Thanks to CasperVector.

commitf3a062d5f928ca46376f4fda0a04172d54540454 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 19 Feb 2014, 09:11 (13 years ago) parent5a8a247
1 file changed+1−1
src/Text/Pandoc/Readers/RST.hs+1−1
src/Text/Pandoc/Readers/RST.hs+1−1
@@ -581,7 +581,7 @@ directive' = do
581581 "figure" -> do
582582 (caption, legend) <- parseFromString extractCaption body'
583583 let src = escapeURI $ trim top
584− return $ B.para (B.image src "" caption) <> legend
584+ return $ B.para (B.image src "fig:" caption) <> legend
585585 "image" -> do
586586 let src = escapeURI $ trim top
587587 let alt = B.str $ maybe "image" trim $ lookup "alt" fields