aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/command/5836.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/command/5836.md b/test/command/5836.md
new file mode 100644
index 000000000..fbd5492e1
--- /dev/null
+++ b/test/command/5836.md
@@ -0,0 +1,19 @@
+```
+% pandoc -f markdown -t latex
+\newcommand{\vara}{\alpha}
+\newcommand{\varb}{b}
+$\vara \varb$
+^D
+\newcommand{\vara}{\alpha}
+\newcommand{\varb}{b}
+
+\(\alpha b\)
+```
+```
+% pandoc -f latex -t latex
+\newcommand{\vara}{\alpha}
+\newcommand{\varb}{b}
+$\vara \varb$
+^D
+\(\alpha b\)
+```