RST reader: Renamed 'image' to 'subst', since it now handles more.

This commit is contained in:
John MacFarlane 2012-09-30 20:18:14 -07:00
parent 9294fc399c
commit 9366d8681d

View file

@ -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