aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-01-21 21:35:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2013-01-21 21:36:31 -0800
commit7415462dc906344a504f1a509be1e9a0b59eda69 (patch)
tree22a695b56ea00346f087deb2d877e72151efcf26 /src/Text/Pandoc
parent420845a32c83e9adbe0cfb19197417e5f96fb5a5 (diff)
downloadpandoc-7415462dc906344a504f1a509be1e9a0b59eda69.tar.gz
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.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
1 files changed, 1 insertions, 1 deletions
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