git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: fixed parsing bug with macros.
e20f433John MacFarlane
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -484,7 +484,6 @@ block = do
484 res <- choice [ mempty <$ blanklines
484 res <- choice [ mempty <$ blanklines
485 , codeBlockFenced
485 , codeBlockFenced
486 , yamlMetaBlock
486 , yamlMetaBlock
487− , guardEnabled Ext_latex_macros *> (macro >>= return . return)
488 -- note: bulletList needs to be before header because of
487 -- note: bulletList needs to be before header because of
489 -- the possibility of empty list items: -
488 -- the possibility of empty list items: -
490 , bulletList
489 , bulletList
@@ -494,6 +493,7 @@ block = do
494 , htmlBlock
493 , htmlBlock
495 , table
494 , table
496 , codeBlockIndented
495 , codeBlockIndented
496+ , guardEnabled Ext_latex_macros *> (macro >>= return . return)
497 , rawTeXBlock
497 , rawTeXBlock
498 , lineBlock
498 , lineBlock
499 , blockQuote
499 , blockQuote