LaTeX reader: allow macro definitions inside macros.

Previously we went into an infinite loop with

```
\newcommand{\noop}[1]{#1}
\noop{\newcommand{\foo}[1]{#1}}
\foo{hi}
```

See #4253.
This commit is contained in:
John MacFarlane 2018-01-13 12:10:52 -08:00
parent 44222e0373
commit dca0032b0e

8
test/command/4253.md Normal file
View file

@ -0,0 +1,8 @@
```
% pandoc -f latex -t native
\newcommand{\noop}[1]{#1}
\noop{\newcommand{\foo}[1]{#1}}
\foo{hi}
^D
[Para [Str "hi"]]
```