aboutsummaryrefslogtreecommitdiff
path: root/test/command/5740.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-09-09 21:33:16 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-09-09 21:33:16 -0700
commit4778d034734e4848688c1fb5fa196b8bda8f08f2 (patch)
treeb2f7e2da454ffb8a3949cc8070aa4d473fbd1f14 /test/command/5740.md
parent4dad7c5e86d9b6661f00912c4443245de6a636a4 (diff)
downloadpandoc-4778d034734e4848688c1fb5fa196b8bda8f08f2.tar.gz
LaTeX reader: Fix parsing of optional arguments that contain braced text.
Closes #5740.
Diffstat (limited to 'test/command/5740.md')
-rw-r--r--test/command/5740.md9
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})\)
+```