RST reader: Renamed 'image' to 'subst', since it now handles more.
This commit is contained in:
parent
9294fc399c
commit
9366d8681d
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue