@@ -182,7 +182,7 @@ parseMarkdown = do
182182 -- docMinusKeys is the raw document with blanks where the keys/notes were...
183183 st <- getState
184184 let firstPassParser = referenceKey
185− <|> (if optionStrict (stateOptions st) then mzero else noteBlock)
185+ <|> (if readerStrict (stateOptions st) then mzero else noteBlock)
186186 <|> liftM snd (withRaw codeBlockDelimited)
187187 <|> lineClump
188188 docMinusKeys <- liftM concat $ manyTill firstPassParser eof
@@ -293,7 +293,7 @@ parseBlocks = manyTill block eof
293293block :: Parser [Char] ParserState Block
294294block = do
295295 st <- getState
296− choice (if optionStrict (stateOptions st)
296+ choice (if readerStrict (stateOptions st)
297297 then [ header
298298 , codeBlockIndented
299299 , blockQuote
@@ -534,7 +534,7 @@ anyOrderedListStart = try $ do
534534 skipNonindentSpaces
535535 notFollowedBy $ string "p." >> spaceChar >> digit -- page number
536536 state <- getState
537− if optionStrict (stateOptions state)
537+ if readerStrict (stateOptions state)
538538 then do many1 digit
539539 char '.'
540540 spaceChar
@@ -695,7 +695,7 @@ para = try $ do
695695 option (Plain result) $ try $ do
696696 newline
697697 blanklines <|>
698− (getState >>= guard . optionStrict . stateOptions >>
698+ (getState >>= guard . readerStrict . stateOptions >>
699699 lookAhead (blockQuote <|> header) >> return "")
700700 return $ Para result
701701
@@ -1009,7 +1009,7 @@ escapedChar' :: Parser [Char] ParserState Char
10091009escapedChar' = try $ do
10101010 char '\\'
10111011 state <- getState
1012− if optionStrict (stateOptions state)
1012+ if readerStrict (stateOptions state)
10131013 then oneOf "\\`*_{}[]()>#+-.!~"
10141014 else satisfy (not . isAlphaNum)
10151015
@@ -1024,7 +1024,7 @@ escapedChar = do
10241024ltSign :: Parser [Char] ParserState Inline
10251025ltSign = do
10261026 st <- getState
1027− if optionStrict (stateOptions st)
1027+ if readerStrict (stateOptions st)
10281028 then char '<'
10291029 else notFollowedBy' rawHtmlBlocks >> char '<' -- unless it starts html
10301030 return $ Str ['<']
@@ -1160,7 +1160,7 @@ nonEndline = satisfy (/='\n')
11601160
11611161str :: Parser [Char] ParserState Inline
11621162str = do
1163− smart <- (optionSmart . stateOptions) `fmap` getState
1163+ smart <- (readerSmart . stateOptions) `fmap` getState
11641164 a <- alphaNum
11651165 as <- many $ alphaNum
11661166 <|> (try $ char '_' >>~ lookAhead alphaNum)
@@ -1201,7 +1201,7 @@ endline = try $ do
12011201 newline
12021202 notFollowedBy blankline
12031203 st <- getState
1204− when (optionStrict (stateOptions st)) $ do
1204+ when (readerStrict (stateOptions st)) $ do
12051205 notFollowedBy emailBlockQuoteStart
12061206 notFollowedBy (char '#') -- atx header
12071207 -- parse potential list-starts differently if in a list:
@@ -1283,7 +1283,7 @@ autoLink = try $ do
12831283 (orig, src) <- uri <|> emailAddress
12841284 char '>'
12851285 st <- getState
1286− return $ if optionStrict (stateOptions st)
1286+ return $ if readerStrict (stateOptions st)
12871287 then Link [Str orig] (src, "")
12881288 else Link [Code ("",["url"],[]) orig] (src, "")
12891289
@@ -1344,7 +1344,7 @@ inBrackets parser = do
13441344rawHtmlInline :: Parser [Char] ParserState Inline
13451345rawHtmlInline = do
13461346 st <- getState
1347− (_,result) <- if optionStrict (stateOptions st)
1347+ (_,result) <- if readerStrict (stateOptions st)
13481348 then htmlTag (not . isTextTag)
13491349 else htmlTag isInlineTag
13501350 return $ RawInline "html" result