diff options
author | Greg Maslov <gmaslov@bootis.org> | 2012-03-24 21:30:10 -0400 |
---|---|---|
committer | Greg Maslov <gmaslov@bootis.org> | 2012-03-24 21:48:54 -0400 |
commit | 618dc294f93f1865dcdfbfda21003745b4d6b389 (patch) | |
tree | 5054a79a2c3ea79dfa7d33d8cb078cf9f4964d51 /src/Text/Pandoc/Parsing.hs | |
parent | 3c4e1ff063100cbdf27f911fcbedbb842adf2af4 (diff) |
Add parsing support for the rST default-role directive.
Diffstat (limited to 'src/Text/Pandoc/Parsing.hs')
-rw-r--r-- | src/Text/Pandoc/Parsing.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Parsing.hs b/src/Text/Pandoc/Parsing.hs index 725621ce2..22a8d4d50 100644 --- a/src/Text/Pandoc/Parsing.hs +++ b/src/Text/Pandoc/Parsing.hs @@ -652,7 +652,8 @@ data ParserState = ParserState stateExamples :: M.Map String Int, -- ^ Map from example labels to numbers stateHasChapters :: Bool, -- ^ True if \chapter encountered stateApplyMacros :: Bool, -- ^ Apply LaTeX macros? - stateMacros :: [Macro] -- ^ List of macros defined so far + stateMacros :: [Macro], -- ^ List of macros defined so far + stateRstDefaultRole :: String -- ^ Current rST default interpreted text role } deriving Show @@ -682,7 +683,8 @@ defaultParserState = stateExamples = M.empty, stateHasChapters = False, stateApplyMacros = True, - stateMacros = []} + stateMacros = [], + stateRstDefaultRole = "title-reference"} data HeaderType = SingleHeader Char -- ^ Single line of characters underneath |