diff options
author | John MacFarlane <jgm@berkeley.edu> | 2012-08-04 10:49:05 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-08-04 10:49:05 -0700 |
commit | c19c6fdc505a8cd89dccdfa28bc28125d8b3a247 (patch) | |
tree | 4f60a3efd8bcb4deae036e0e9bb6bea9f4485ee9 | |
parent | 64f1d68d4efaee9d49ce2bbdd28372fef5a69a66 (diff) | |
download | pandoc-c19c6fdc505a8cd89dccdfa28bc28125d8b3a247.tar.gz |
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.
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |