aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-09-02 18:48:37 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-09-02 18:48:37 -0700
commit5e708eb8ce4bb4325b009ac37a5986517d6b9290 (patch)
treec5a67838048f670463f86bee2e8826352b9057db /test
parent3fac27b26b825a36304169c698e422801605de2c (diff)
downloadpandoc-5e708eb8ce4bb4325b009ac37a5986517d6b9290.tar.gz
LaTeX reader: properly handle optional arguments for macros.
Closes #5682.
Diffstat (limited to 'test')
-rw-r--r--test/command/5682.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command/5682.md b/test/command/5682.md
new file mode 100644
index 000000000..6d3b9fa0c
--- /dev/null
+++ b/test/command/5682.md
@@ -0,0 +1,8 @@
+```
+% pandoc -t native -f latex
+\newcommand{\ittakestwo}[2][defaultone]{#2}
+\ittakestwo[to]{tango}
+^D
+[Para [Str "tango"]]
+```
+