28b736bf95
Don't pass through macro definitions themselves when `latex_macros` is set. The macros have already been applied. If `latex_macros` is enabled, then `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing a macro definition, and will update pandoc's internal macro map accordingly, but the empty string will be returned. Together with earlier changes, this closes #4179.
94 B
94 B
% pandoc -f markdown -t native
\newcommand{\gen}{a\ Gen\ b}
abc
^D
[Para [Str "abc"]]