aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-02-19 09:11:15 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-02-19 09:11:15 -0800
commitf3a062d5f928ca46376f4fda0a04172d54540454 (patch)
tree270f13d0061c5059ae439a54b59922cea152a507 /src
parent5a8a247c3a480188fb70e198f0b7a5ec4c4d963f (diff)
downloadpandoc-f3a062d5f928ca46376f4fda0a04172d54540454.tar.gz
Make rst figures true figures. Closes #1168.
Thanks to CasperVector.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/RST.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs
index a46a3a6c6..127eae167 100644
--- a/src/Text/Pandoc/Readers/RST.hs
+++ b/src/Text/Pandoc/Readers/RST.hs
@@ -581,7 +581,7 @@ directive' = do
"figure" -> do
(caption, legend) <- parseFromString extractCaption body'
let src = escapeURI $ trim top
- return $ B.para (B.image src "" caption) <> legend
+ return $ B.para (B.image src "fig:" caption) <> legend
"image" -> do
let src = escapeURI $ trim top
let alt = B.str $ maybe "image" trim $ lookup "alt" fields