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.
This commit is contained in:
John MacFarlane
2012-08-04 10:49:05 -07:00
parent 64f1d68d4e
commit c19c6fdc50
+2 -2
View File
@@ -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