diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-09-02 18:48:37 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-09-02 18:48:37 -0700 |
commit | 5e708eb8ce4bb4325b009ac37a5986517d6b9290 (patch) | |
tree | c5a67838048f670463f86bee2e8826352b9057db /test | |
parent | 3fac27b26b825a36304169c698e422801605de2c (diff) | |
download | pandoc-5e708eb8ce4bb4325b009ac37a5986517d6b9290.tar.gz |
LaTeX reader: properly handle optional arguments for macros.
Closes #5682.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/5682.md | 8 |
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"]] +``` + |