Parsing: Added stateCaption.
This is primarily for use in the LaTeX reader, so far.
This commit is contained in:
parent
994597f071
commit
0934c4430a
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue