From 4778d034734e4848688c1fb5fa196b8bda8f08f2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 9 Sep 2019 21:33:16 -0700 Subject: LaTeX reader: Fix parsing of optional arguments that contain braced text. Closes #5740. --- test/command/5740.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/command/5740.md (limited to 'test') 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})\) +``` -- cgit v1.2.3