git.iko.soy/typeable/pandoc
on master help sign in
Parsing: Added stateCaption.

This is primarily for use in the LaTeX reader, so far.

commit0934c4430a91551f8d293fa7eb6a2c3e745d3a48 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 25 Mar 2014, 22:44 (13 years ago) parent994597f
1 file changed+2−1
src/Text/Pandoc/Parsing.hs+2−1
src/Text/Pandoc/Parsing.hs+2−1
@@ -857,7 +857,7 @@ data ParserState = ParserState
857857 -- Triple represents: 1) Base role, 2) Optional format (only for :raw:
858858 -- roles), 3) Source language annotation for code (could be used to
859859 -- annotate role classes too).
860−
860+ stateCaption :: Maybe Inlines, -- ^ Caption in current environment
861861 stateWarnings :: [String] -- ^ Warnings generated by the parser
862862 }
863863
@@ -927,6 +927,7 @@ defaultParserState =
927927 stateMacros = [],
928928 stateRstDefaultRole = "title-reference",
929929 stateRstCustomRoles = M.empty,
930+ stateCaption = Nothing,
930931 stateWarnings = []}
931932
932933-- | Succeed only if the extension is enabled.