From c19c6fdc505a8cd89dccdfa28bc28125d8b3a247 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 4 Aug 2012 10:49:05 -0700 Subject: Markdown reader: look for raw html/latex blocks before tables. Otherwise the following gets parsed as a table: \begin{code} -------------- -- My comment. \end{code} Closes #578. --- src/Text/Pandoc/Readers/Markdown.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc/Readers') diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index b51375cce..b4b05920e 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -277,6 +277,8 @@ block :: Parser [Char] ParserState (F Blocks) block = choice [ codeBlockDelimited , guardEnabled Ext_latex_macros *> (mempty <$ macro) , header + , rawTeXBlock + , htmlBlock , table , codeBlockIndented , lhsCodeBlock @@ -285,8 +287,6 @@ block = choice [ codeBlockDelimited , bulletList , orderedList , definitionList - , rawTeXBlock - , htmlBlock , noteBlock , referenceKey , para -- cgit v1.2.3