Parsing: Added stateCaption.

This is primarily for use in the LaTeX reader, so far.
This commit is contained in:
John MacFarlane 2014-03-25 22:44:16 -07:00
parent 994597f071
commit 0934c4430a

View file

@ -857,7 +857,7 @@ data ParserState = ParserState
-- Triple represents: 1) Base role, 2) Optional format (only for :raw:
-- roles), 3) Source language annotation for code (could be used to
-- annotate role classes too).
stateCaption :: Maybe Inlines, -- ^ Caption in current environment
stateWarnings :: [String] -- ^ Warnings generated by the parser
}
@ -927,6 +927,7 @@ defaultParserState =
stateMacros = [],
stateRstDefaultRole = "title-reference",
stateRstCustomRoles = M.empty,
stateCaption = Nothing,
stateWarnings = []}
-- | Succeed only if the extension is enabled.