mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 18:26:36 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user