@@ -182,7 +182,7 @@ parseMarkdown = do
182 -- docMinusKeys is the raw document with blanks where the keys/notes were...
182 -- docMinusKeys is the raw document with blanks where the keys/notes were...
183 st <- getState
183 st <- getState
184 let firstPassParser = referenceKey
184 let firstPassParser = referenceKey
185− <|> (if optionStrict (stateOptions st) then mzero else noteBlock)
185+ <|> (if readerStrict (stateOptions st) then mzero else noteBlock)
186 <|> liftM snd (withRaw codeBlockDelimited)
186 <|> liftM snd (withRaw codeBlockDelimited)
187 <|> lineClump
187 <|> lineClump
188 docMinusKeys <- liftM concat $ manyTill firstPassParser eof
188 docMinusKeys <- liftM concat $ manyTill firstPassParser eof
@@ -293,7 +293,7 @@ parseBlocks = manyTill block eof
293block :: Parser [Char] ParserState Block
293block :: Parser [Char] ParserState Block
294block = do
294block = do
295 st <- getState
295 st <- getState
296− choice (if optionStrict (stateOptions st)
296+ choice (if readerStrict (stateOptions st)
297 then [ header
297 then [ header
298 , codeBlockIndented
298 , codeBlockIndented
299 , blockQuote
299 , blockQuote
@@ -534,7 +534,7 @@ anyOrderedListStart = try $ do
534 skipNonindentSpaces
534 skipNonindentSpaces
535 notFollowedBy $ string "p." >> spaceChar >> digit -- page number
535 notFollowedBy $ string "p." >> spaceChar >> digit -- page number
536 state <- getState
536 state <- getState
537− if optionStrict (stateOptions state)
537+ if readerStrict (stateOptions state)
538 then do many1 digit
538 then do many1 digit
540 spaceChar
540 spaceChar
@@ -695,7 +695,7 @@ para = try $ do
695 option (Plain result) $ try $ do
695 option (Plain result) $ try $ do
697 blanklines <|>
697 blanklines <|>
698− (getState >>= guard . optionStrict . stateOptions >>
698+ (getState >>= guard . readerStrict . stateOptions >>
699 lookAhead (blockQuote <|> header) >> return "")
699 lookAhead (blockQuote <|> header) >> return "")
700 return $ Para result
700 return $ Para result
@@ -1009,7 +1009,7 @@ escapedChar' :: Parser [Char] ParserState Char
1009escapedChar' = try $ do
1009escapedChar' = try $ do
1010 char '\\'
1010 char '\\'
1011 state <- getState
1011 state <- getState
1012− if optionStrict (stateOptions state)
1012+ if readerStrict (stateOptions state)
1013 then oneOf "\\`*_{}[]()>#+-.!~"
1013 then oneOf "\\`*_{}[]()>#+-.!~"
1014 else satisfy (not . isAlphaNum)
1014 else satisfy (not . isAlphaNum)
@@ -1024,7 +1024,7 @@ escapedChar = do
1024ltSign :: Parser [Char] ParserState Inline
1024ltSign :: Parser [Char] ParserState Inline
1025ltSign = do
1025ltSign = do
1026 st <- getState
1026 st <- getState
1027− if optionStrict (stateOptions st)
1027+ if readerStrict (stateOptions st)
1028 then char '<'
1028 then char '<'
1029 else notFollowedBy' rawHtmlBlocks >> char '<' -- unless it starts html
1029 else notFollowedBy' rawHtmlBlocks >> char '<' -- unless it starts html
1030 return $ Str ['<']
1030 return $ Str ['<']
@@ -1160,7 +1160,7 @@ nonEndline = satisfy (/='\n')
1161str :: Parser [Char] ParserState Inline
1161str :: Parser [Char] ParserState Inline
1163− smart <- (optionSmart . stateOptions) `fmap` getState
1163+ smart <- (readerSmart . stateOptions) `fmap` getState
1164 a <- alphaNum
1164 a <- alphaNum
1165 as <- many $ alphaNum
1165 as <- many $ alphaNum
1166 <|> (try $ char '_' >>~ lookAhead alphaNum)
1166 <|> (try $ char '_' >>~ lookAhead alphaNum)
@@ -1201,7 +1201,7 @@ endline = try $ do
1202 notFollowedBy blankline
1202 notFollowedBy blankline
1203 st <- getState
1203 st <- getState
1204− when (optionStrict (stateOptions st)) $ do
1204+ when (readerStrict (stateOptions st)) $ do
1205 notFollowedBy emailBlockQuoteStart
1205 notFollowedBy emailBlockQuoteStart
1206 notFollowedBy (char '#') -- atx header
1206 notFollowedBy (char '#') -- atx header
1207 -- parse potential list-starts differently if in a list:
1207 -- parse potential list-starts differently if in a list:
@@ -1283,7 +1283,7 @@ autoLink = try $ do
1283 (orig, src) <- uri <|> emailAddress
1283 (orig, src) <- uri <|> emailAddress
1284 char '>'
1284 char '>'
1285 st <- getState
1285 st <- getState
1286− return $ if optionStrict (stateOptions st)
1286+ return $ if readerStrict (stateOptions st)
1287 then Link [Str orig] (src, "")
1287 then Link [Str orig] (src, "")
1288 else Link [Code ("",["url"],[]) orig] (src, "")
1288 else Link [Code ("",["url"],[]) orig] (src, "")
@@ -1344,7 +1344,7 @@ inBrackets parser = do
1344rawHtmlInline :: Parser [Char] ParserState Inline
1344rawHtmlInline :: Parser [Char] ParserState Inline
1345rawHtmlInline = do
1345rawHtmlInline = do
1346 st <- getState
1346 st <- getState
1347− (_,result) <- if optionStrict (stateOptions st)
1347+ (_,result) <- if readerStrict (stateOptions st)
1348 then htmlTag (not . isTextTag)
1348 then htmlTag (not . isTextTag)
1349 else htmlTag isInlineTag
1349 else htmlTag isInlineTag
1350 return $ RawInline "html" result
1350 return $ RawInline "html" result