pandoc/test/command/5836.md
John MacFarlane 65593043c3 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.
2019-11-02 12:44:48 -07:00

27 lines
397 B
Markdown

```
% 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\)
```
```
% pandoc -f latex -t latex
\newcommand{\vara}{\alpha}
\newcommand{\varb}{b}
\[\vara \varb\]
^D
\[\alpha b\]
```