From ac1a46b0cb4206eb3d46e2f29f29d53b0489c184 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 19 Jul 2018 10:14:05 -0700 Subject: rawLaTeXBlock: never retokenize macroDef. --- src/Text/Pandoc/Readers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Readers') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index facafe63d..c15312cd8 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -287,7 +287,7 @@ rawLaTeXBlock = do lookAhead (try (char '\\' >> letter)) snd <$> (rawLaTeXParser False macroDef blocks <|> rawLaTeXParser True - (environment <|> macroDef <|> blockCommand) + (environment <|> blockCommand) (mconcat <$> (many (block <|> beginOrEndCommand)))) -- See #4667 for motivation; sometimes people write macros -- cgit v1.2.3