Files
pandoc/test/command/7299.md
John MacFarlane 5736b331d8 LaTeX reader: better support for \xspace.
Previously we only supported it in inline contexts; now
we support it in all contexts, including math.

Partially addresses #7299.
2021-05-19 16:14:49 -07:00

24 lines
229 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
```
% pandoc -f latex -t plain
$1-{\ensuremath{r}\xspace}$
^D
1  r
```
```
% pandoc -f latex -t plain
\newcommand{\foo}{Foo\xspace}
$\text{\foo bar}$
^D
Foo bar
```
```
% pandoc -f latex -t plain
a\xspace b
^D
a b
```