mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-02 05:35:38 +00:00
Previously we only supported it in inline contexts; now we support it in all contexts, including math. Partially addresses #7299.
24 lines
229 B
Markdown
24 lines
229 B
Markdown
```
|
||
% 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
|
||
```
|
||
|