git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: look for raw html/latex blocks before tables.
c19c6fdJohn MacFarlane
src/Text/Pandoc/Readers/Markdown.hs+2−2
@@ -277,6 +277,8 @@ block :: Parser [Char] ParserState (F Blocks)
277block = choice [ codeBlockDelimited
277block = choice [ codeBlockDelimited
278 , guardEnabled Ext_latex_macros *> (mempty <$ macro)
278 , guardEnabled Ext_latex_macros *> (mempty <$ macro)
279 , header
279 , header
280+ , rawTeXBlock
281+ , htmlBlock
280 , table
282 , table
281 , codeBlockIndented
283 , codeBlockIndented
282 , lhsCodeBlock
284 , lhsCodeBlock
@@ -285,8 +287,6 @@ block = choice [ codeBlockDelimited
285 , bulletList
287 , bulletList
286 , orderedList
288 , orderedList
287 , definitionList
289 , definitionList
288− , rawTeXBlock
289− , htmlBlock
290 , noteBlock
290 , noteBlock
291 , referenceKey
291 , referenceKey
292 , para
292 , para