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