git.iko.soy/typeable/pandoc
on master help sign in
Clarified field values in RstCustomRoles.
66fd9bfMerijn Verstraaten
src/Text/Pandoc/Parsing.hs+4
@@ -854,6 +854,10 @@ data ParserState = ParserState
854 stateMacros :: [Macro], -- ^ List of macros defined so far
854 stateMacros :: [Macro], -- ^ List of macros defined so far
855 stateRstDefaultRole :: String, -- ^ Current rST default interpreted text role
855 stateRstDefaultRole :: String, -- ^ Current rST default interpreted text role
856 stateRstCustomRoles :: M.Map String (String, Maybe String, Attr -> (String, Attr)), -- ^ Current rST custom text roles
856 stateRstCustomRoles :: M.Map String (String, Maybe String, Attr -> (String, Attr)), -- ^ Current rST custom text roles
857+ -- Triple represents: 1) Base role, 2) Optional format (only for :raw:
858+ -- roles), 3) Source language annotation for code (could be used to
859+ -- annotate role classes too).
860+
857 stateWarnings :: [String] -- ^ Warnings generated by the parser
861 stateWarnings :: [String] -- ^ Warnings generated by the parser
858 }
862 }
859
863