@@ -230,7 +230,7 @@ block = do
230 st <- getState
230 st <- getState
231 choice (if stateStrict st
231 choice (if stateStrict st
232 then [ header
232 then [ header
233− , codeBlock
233+ , codeBlockIndented
234 , blockQuote
234 , blockQuote
236 , bulletList
236 , bulletList
@@ -239,9 +239,10 @@ block = do
241 , nullBlock ]
241 , nullBlock ]
242+ else [ codeBlockDelimited
242− else [ header
243+ , header
244− , codeBlock
245+ , codeBlockIndented
245 , blockQuote
246 , blockQuote
247 , bulletList
248 , bulletList
@@ -295,8 +296,6 @@ hrule = try $ do
296indentedLine = indentSpaces >> manyTill anyChar newline >>= return . (++ "\n")
297indentedLine = indentSpaces >> manyTill anyChar newline >>= return . (++ "\n")
298−codeBlock = codeBlockIndented <|> codeBlockDelimited
300codeBlockDelimiter len = try $ do
299codeBlockDelimiter len = try $ do
301 size <- case len of
300 size <- case len of
302 Just l -> count l (char '~') >> many (char '~') >> return l
301 Just l -> count l (char '~') >> many (char '~') >> return l