aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Parsing.hs3
1 files changed, 2 insertions, 1 deletions
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.