From 65593043c33b97f55170a53eb330d7ce069774cd Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sat, 2 Nov 2019 12:44:48 -0700
Subject: 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.
---
 test/command/5836.md | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'test/command')

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\]
+```
-- 
cgit v1.2.3