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.
commitc19c6fdc505a8cd89dccdfa28bc28125d8b3a247
authorJohn MacFarlane <jgm@berkeley.edu>
dateSat 4 Aug 2012, 10:49 (14 years ago)
parent64f1d68
src/Text/Pandoc/Readers/Markdown.hs+2−2
@@ -277,6 +277,8 @@ block :: Parser [Char] ParserState (F Blocks)
277277block = choice [ codeBlockDelimited
278278 , guardEnabled Ext_latex_macros *> (mempty <$ macro)
279279 , header
280+ , rawTeXBlock
281+ , htmlBlock
280282 , table
281283 , codeBlockIndented
282284 , lhsCodeBlock
@@ -285,8 +287,6 @@ block = choice [ codeBlockDelimited
285287 , bulletList
286288 , orderedList
287289 , definitionList
288− , rawTeXBlock
289− , htmlBlock
290290 , noteBlock
291291 , referenceKey
292292 , para