pandoc/test/command/4159.md
John MacFarlane 28b736bf95 latex_macros extension changes.
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.
2017-12-22 18:03:51 -08:00

7 lines
94 B
Markdown

```
% pandoc -f markdown -t native
\newcommand{\gen}{a\ Gen\ b}
abc
^D
[Para [Str "abc"]]
```