@@ -698,11 +698,9 @@ data ParserState = ParserState
698698 stateAuthors :: [[Inline]], -- ^ Authors of document
699699 stateDate :: [Inline], -- ^ Date of document
700700 stateHeaderTable :: [HeaderType], -- ^ Ordered list of header types used
701− stateIndentedCodeClasses :: [String], -- ^ Classes to use for indented code blocks
702701 stateNextExample :: Int, -- ^ Number of next example
703702 stateExamples :: M.Map String Int, -- ^ Map from example labels to numbers
704703 stateHasChapters :: Bool, -- ^ True if \chapter encountered
705− stateApplyMacros :: Bool, -- ^ Apply LaTeX macros?
706704 stateMacros :: [Macro], -- ^ List of macros defined so far
707705 stateRstDefaultRole :: String -- ^ Current rST default interpreted text role
708706 }
@@ -724,11 +722,9 @@ defaultParserState =
724722 stateAuthors = [],
725723 stateDate = [],
726724 stateHeaderTable = [],
727− stateIndentedCodeClasses = [],
728725 stateNextExample = 1,
729726 stateExamples = M.empty,
730727 stateHasChapters = False,
731− stateApplyMacros = True,
732728 stateMacros = [],
733729 stateRstDefaultRole = "title-reference"}
734730
@@ -916,7 +912,7 @@ emDashOld = do
916912-- | Parse a \newcommand or \renewcommand macro definition.
917913macro :: Parsec [Char] ParserState Block
918914macro = do
919− apply <- stateApplyMacros `fmap` getState
915+ apply <- getOption readerApplyMacros
920916 inp <- getInput
921917 case parseMacroDefinitions inp of
922918 ([], _) -> mzero
@@ -931,7 +927,7 @@ macro = do
931927-- | Apply current macros to string.
932928applyMacros' :: String -> Parsec [Char] ParserState String
933929applyMacros' target = do
934− apply <- liftM stateApplyMacros getState
930+ apply <- getOption readerApplyMacros
935931 if apply
936932 then do macros <- liftM stateMacros getState
937933 return $ applyMacros macros target