diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-01-13 12:10:52 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-01-13 12:22:25 -0800 |
commit | dca0032b0ebf99f374b3d8fc3942abfc3955de40 (patch) | |
tree | a7ee5a4ea69ba3b394ee7d46851ef54a98fa50d6 | |
parent | 44222e0373f47c986833a609271d495d55ff48de (diff) | |
download | pandoc-dca0032b0ebf99f374b3d8fc3942abfc3955de40.tar.gz |
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.
-rw-r--r-- | test/command/4253.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command/4253.md b/test/command/4253.md new file mode 100644 index 000000000..01f5eea86 --- /dev/null +++ b/test/command/4253.md @@ -0,0 +1,8 @@ +``` +% pandoc -f latex -t native +\newcommand{\noop}[1]{#1} +\noop{\newcommand{\foo}[1]{#1}} +\foo{hi} +^D +[Para [Str "hi"]] +``` |