diff options
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index e46396fa0..9f63a1947 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -618,7 +618,7 @@ rawAttribute = do char '{' skipMany spaceChar char '=' - format <- many1Char $ satisfy (\c -> isAlphaNum c || c `elem` ['-', '_']) + format <- many1Char $ satisfy (\c -> isAlphaNum c || c `elem` ['-', '_']) skipMany spaceChar char '}' return format @@ -1095,7 +1095,8 @@ rawHtmlBlocks = do oldInHtmlBlock <- stateInHtmlBlock <$> getState updateState $ \st -> st{ stateInHtmlBlock = Just tagtype } let closer = htmlTag (\x -> x ~== TagClose tagtype) - let block' = do notFollowedBy' closer + let block' = try $ + do notFollowedBy' closer gobbleAtMostSpaces indentlevel block contents <- mconcat <$> many block' |