Skip to content

Commit

Permalink
LaTeX reader: allow macro definitions inside macros.
Browse files Browse the repository at this point in the history
Previously we went into an infinite loop with

```
\newcommand{\noop}[1]{#1}
\noop{\newcommand{\foo}[1]{#1}}
\foo{hi}
```

See #4253.
  • Loading branch information
jgm committed Jan 13, 2018
1 parent 44222e0 commit dca0032
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/command/4253.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
```
% pandoc -f latex -t native
\newcommand{\noop}[1]{#1}
\noop{\newcommand{\foo}[1]{#1}}
\foo{hi}
^D
[Para [Str "hi"]]
```

0 comments on commit dca0032

Please sign in to comment.