mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 15:38:09 +08:00
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:
@@ -0,0 +1,8 @@
|
||||
```
|
||||
% pandoc -f latex -t native
|
||||
\newcommand{\noop}[1]{#1}
|
||||
\noop{\newcommand{\foo}[1]{#1}}
|
||||
\foo{hi}
|
||||
^D
|
||||
[Para [Str "hi"]]
|
||||
```
|
||||
Reference in New Issue
Block a user