aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-01-13 12:10:52 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2018-01-13 12:22:25 -0800
commitdca0032b0ebf99f374b3d8fc3942abfc3955de40 (patch)
treea7ee5a4ea69ba3b394ee7d46851ef54a98fa50d6 /test/command
parent44222e0373f47c986833a609271d495d55ff48de (diff)
downloadpandoc-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.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/4253.md8
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"]]
+```