diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-08-13 20:04:17 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-08-13 20:04:17 -0700 |
commit | bb0b5e9022a3c40629713128272de1735043d91b (patch) | |
tree | 0a2c810ae4db914434c90911079509709d9e4b1a | |
parent | 76edb6b848520ac3733b891cffdc92c0d350d371 (diff) | |
download | pandoc-bb0b5e9022a3c40629713128272de1735043d91b.tar.gz |
Markdown: Prevent parse failure on HTML blocks with -raw_html.
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 3 |
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 "<" |