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:
parent
44222e0373
commit
dca0032b0e
1 changed files with 8 additions and 0 deletions
8
test/command/4253.md
Normal file
8
test/command/4253.md
Normal 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"]]
|
||||
```
|
Loading…
Add table
Reference in a new issue