diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-02-19 09:11:15 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-02-19 09:11:15 -0800 |
commit | f3a062d5f928ca46376f4fda0a04172d54540454 (patch) | |
tree | 270f13d0061c5059ae439a54b59922cea152a507 /src | |
parent | 5a8a247c3a480188fb70e198f0b7a5ec4c4d963f (diff) | |
download | pandoc-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.hs | 2 |
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 |