From 7415462dc906344a504f1a509be1e9a0b59eda69 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 21 Jan 2013 21:35:51 -0800 Subject: Markdown reader: Try lhsCodeBlock before rawTeXBlock. Otherwise \begin{code}...\end{code} isn't handled properly in markdown+lhs. Thanks to Daniel Miot for noticing the bug and suggesting the fix. --- src/Text/Pandoc/Readers/Markdown.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 2c6c47307..4eb17c16b 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -358,12 +358,12 @@ block = choice [ codeBlockFenced , codeBlockBackticks , guardEnabled Ext_latex_macros *> (mempty <$ macro) , header + , lhsCodeBlock , rawTeXBlock , htmlBlock , lineBlock , table , codeBlockIndented - , lhsCodeBlock , blockQuote , hrule , bulletList -- cgit v1.2.3