From 0934c4430a91551f8d293fa7eb6a2c3e745d3a48 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 25 Mar 2014 22:44:16 -0700 Subject: Parsing: Added stateCaption. This is primarily for use in the LaTeX reader, so far. --- src/Text/Pandoc/Parsing.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Parsing.hs b/src/Text/Pandoc/Parsing.hs index d8c7e71d5..68d4605ee 100644 --- a/src/Text/Pandoc/Parsing.hs +++ b/src/Text/Pandoc/Parsing.hs @@ -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. -- cgit v1.2.3