aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-08-13 20:04:17 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-08-13 20:04:17 -0700
commitbb0b5e9022a3c40629713128272de1735043d91b (patch)
tree0a2c810ae4db914434c90911079509709d9e4b1a /src
parent76edb6b848520ac3733b891cffdc92c0d350d371 (diff)
downloadpandoc-bb0b5e9022a3c40629713128272de1735043d91b.tar.gz
Markdown: Prevent parse failure on HTML blocks with -raw_html.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 4f13740eb..652d8d357 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -1165,7 +1165,8 @@ escapedChar = do
ltSign :: Parser [Char] ParserState (F Inlines)
ltSign = do
- guardDisabled Ext_markdown_in_html_blocks
+ guardDisabled Ext_raw_html
+ <|> guardDisabled Ext_markdown_in_html_blocks
<|> (notFollowedBy' rawHtmlBlocks >> return ())
char '<'
return $ return $ B.str "<"