aboutsummaryrefslogtreecommitdiff
path: root/test/command/7299.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-05-19 16:14:49 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-05-19 16:14:49 -0700
commit5736b331d8ecaa12cc3e2712211ada37c665a93a (patch)
tree3322a4c5f853407f15c719ff10f060f56d6cd5e9 /test/command/7299.md
parent7efb71f4f6feae5c57e685b588e725b1ab27c4b5 (diff)
downloadpandoc-5736b331d8ecaa12cc3e2712211ada37c665a93a.tar.gz
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.
Diffstat (limited to 'test/command/7299.md')
-rw-r--r--test/command/7299.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/command/7299.md b/test/command/7299.md
new file mode 100644
index 000000000..0847c40ce
--- /dev/null
+++ b/test/command/7299.md
@@ -0,0 +1,23 @@
+```
+% 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
+```
+