diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-30 20:18:14 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-30 20:18:14 -0700 |
commit | 9366d8681d39ff892ab477fba637b65d62a0c776 (patch) | |
tree | 09c2138d84a826044c9ec95eb1fbb412282c3e18 /src/Text/Pandoc/Readers | |
parent | 9294fc399c933405006fe51d89b92a3ae25e5824 (diff) | |
download | pandoc-9366d8681d39ff892ab477fba637b65d62a0c776.tar.gz |
RST reader: Renamed 'image' to 'subst', since it now handles more.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 5f7d7bcb6..4ab60c77e 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -853,7 +853,7 @@ inline = choice [ whitespace , strong , emph , code - , image + , subst , superscript , subscript , math @@ -1018,9 +1018,8 @@ autoEmail = do autoLink :: RSTParser Inlines autoLink = autoURI <|> autoEmail --- For now, we assume that all substitution references are for images. -image :: RSTParser Inlines -image = try $ do +subst :: RSTParser Inlines +subst = try $ do (_,ref) <- withRaw $ enclosed (char '|') (char '|') inline state <- getState let substTable = stateSubstitutions state |