aboutsummaryrefslogtreecommitdiff
path: root/test/command/5836.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-02 12:44:48 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-02 12:44:48 -0700
commit65593043c33b97f55170a53eb330d7ce069774cd (patch)
tree7b2a6f1db45292e622b514e9d196a19339af7a62 /test/command/5836.md
parentf39c44f0badc832acfd3fcb317940b4aafa26e20 (diff)
downloadpandoc-65593043c33b97f55170a53eb330d7ce069774cd.tar.gz
LaTeX reader: Fixed dollar-math parsing...
...to ensure that space is left between a control seq and a following word that would otherwise change its meaning. Closes #5836.
Diffstat (limited to 'test/command/5836.md')
-rw-r--r--test/command/5836.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command/5836.md b/test/command/5836.md
index fbd5492e1..6fe1539cf 100644
--- a/test/command/5836.md
+++ b/test/command/5836.md
@@ -17,3 +17,11 @@ $\vara \varb$
^D
\(\alpha b\)
```
+```
+% pandoc -f latex -t latex
+\newcommand{\vara}{\alpha}
+\newcommand{\varb}{b}
+\[\vara \varb\]
+^D
+\[\alpha b\]
+```