git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: check for tex macros after indented code.

Closes #1973.

commit47bfdca04940acde5bbd4f14f32d6fea8902ad90 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 25 Feb 2015, 08:33 (12 years ago) parentae3142f
1 file changed+3−3
src/Text/Pandoc/Readers/Markdown.hs+3−3
src/Text/Pandoc/Readers/Markdown.hs+3−3
@@ -448,18 +448,18 @@ block = do
448448 res <- choice [ mempty <$ blanklines
449449 , codeBlockFenced
450450 , yamlMetaBlock
451− , guardEnabled Ext_latex_macros *> (macro >>= return . return)
452451 -- note: bulletList needs to be before header because of
453452 -- the possibility of empty list items: -
454453 , bulletList
455454 , header
456455 , lhsCodeBlock
457− , rawTeXBlock
458456 , divHtml
459457 , htmlBlock
460458 , table
461− , lineBlock
462459 , codeBlockIndented
460+ , guardEnabled Ext_latex_macros *> (macro >>= return . return)
461+ , rawTeXBlock
462+ , lineBlock
463463 , blockQuote
464464 , hrule
465465 , orderedList