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.
commit7415462dc906344a504f1a509be1e9a0b59eda69
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 21 Jan 2013, 21:35 (14 years ago)
parent420845a
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -358,12 +358,12 @@ block = choice [ codeBlockFenced
358358 , codeBlockBackticks
359359 , guardEnabled Ext_latex_macros *> (mempty <$ macro)
360360 , header
361+ , lhsCodeBlock
361362 , rawTeXBlock
362363 , htmlBlock
363364 , lineBlock
364365 , table
365366 , codeBlockIndented
366− , lhsCodeBlock
367367 , blockQuote
368368 , hrule
369369 , bulletList