diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2019-09-09 21:33:16 -0700 | 
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2019-09-09 21:33:16 -0700 | 
| commit | 4778d034734e4848688c1fb5fa196b8bda8f08f2 (patch) | |
| tree | b2f7e2da454ffb8a3949cc8070aa4d473fbd1f14 /test/command | |
| parent | 4dad7c5e86d9b6661f00912c4443245de6a636a4 (diff) | |
| download | pandoc-4778d034734e4848688c1fb5fa196b8bda8f08f2.tar.gz | |
LaTeX reader: Fix parsing of optional arguments that contain braced text.
Closes #5740.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/5740.md | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/test/command/5740.md b/test/command/5740.md new file mode 100644 index 000000000..a9fb3ad97 --- /dev/null +++ b/test/command/5740.md @@ -0,0 +1,9 @@ +``` +% pandoc -t latex +\newcommand\parenthesize[1][x]{(#1)} +$\parenthesize$, $\parenthesize[y]$, $\parenthesize[\textsc{head}]$ +^D +\newcommand\parenthesize[1][x]{(#1)} + +\((x)\), \((y)\), \((\textsc{head})\) +``` | 
