aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-02 12:27:15 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-02 12:27:15 -0700
commitf39c44f0badc832acfd3fcb317940b4aafa26e20 (patch)
treeaba983fbe8be63f9f32a10bf18fd1bef8057db3c /test
parent041cfbd5eeffd2bc79447c4894652fc3c108c40d (diff)
downloadpandoc-f39c44f0badc832acfd3fcb317940b4aafa26e20.tar.gz
Add test for #5836.
Diffstat (limited to 'test')
-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\)
+```