git.iko.soy/typeable/pandoc
on master help sign in
`Parsing`: Added `stateInHtmlBlock` to `ParserState`.

This is used to keep track of the ending tag we're waiting for when we're parsing inside HTML block tags.

commit3d4e76f34234710a5d13cfac810f581edcb69662 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 7 Jul 2014, 15:40 (12 years ago) parent8c7abf1
1 file changed+2
src/Text/Pandoc/Parsing.hs+2
src/Text/Pandoc/Parsing.hs+2
@@ -863,6 +863,7 @@ data ParserState = ParserState
863863 -- roles), 3) Source language annotation for code (could be used to
864864 -- annotate role classes too).
865865 stateCaption :: Maybe Inlines, -- ^ Caption in current environment
866+ stateInHtmlBlock :: Maybe String, -- ^ Tag type of HTML block being parsed
866867 stateWarnings :: [String] -- ^ Warnings generated by the parser
867868 }
868869
@@ -941,6 +942,7 @@ defaultParserState =
941942 stateRstDefaultRole = "title-reference",
942943 stateRstCustomRoles = M.empty,
943944 stateCaption = Nothing,
945+ stateInHtmlBlock = Nothing,
944946 stateWarnings = []}
945947
946948-- | Succeed only if the extension is enabled.