git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: check for tex macros after indented code.
47bfdcaJohn MacFarlane
src/Text/Pandoc/Readers/Markdown.hs+3−3
@@ -448,18 +448,18 @@ block = do
448 res <- choice [ mempty <$ blanklines
448 res <- choice [ mempty <$ blanklines
449 , codeBlockFenced
449 , codeBlockFenced
450 , yamlMetaBlock
450 , yamlMetaBlock
451− , guardEnabled Ext_latex_macros *> (macro >>= return . return)
452 -- note: bulletList needs to be before header because of
451 -- note: bulletList needs to be before header because of
453 -- the possibility of empty list items: -
452 -- the possibility of empty list items: -
454 , bulletList
453 , bulletList
455 , header
454 , header
456 , lhsCodeBlock
455 , lhsCodeBlock
457− , rawTeXBlock
458 , divHtml
456 , divHtml
459 , htmlBlock
457 , htmlBlock
460 , table
458 , table
461− , lineBlock
462 , codeBlockIndented
459 , codeBlockIndented
460+ , guardEnabled Ext_latex_macros *> (macro >>= return . return)
461+ , rawTeXBlock
462+ , lineBlock
463 , blockQuote
463 , blockQuote
464 , hrule
464 , hrule
465 , orderedList
465 , orderedList