From dca0032b0ebf99f374b3d8fc3942abfc3955de40 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 13 Jan 2018 12:10:52 -0800 Subject: 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. --- test/command/4253.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/command/4253.md (limited to 'test/command') 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"]] +``` -- cgit v1.2.3