From 5e708eb8ce4bb4325b009ac37a5986517d6b9290 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 2 Sep 2019 18:48:37 -0700 Subject: LaTeX reader: properly handle optional arguments for macros. Closes #5682. --- test/command/5682.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/command/5682.md (limited to 'test/command') 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"]] +``` + -- cgit v1.2.3