aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-05-15 09:15:45 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-05-15 09:19:13 -0700
commit58447bba98cb162b21c30755e0e237f890160a1e (patch)
tree51354b17c8f0c267f49572966236357e550f0834 /test/command
parent2936967fa19e77581456189503500de4cfe502b3 (diff)
downloadpandoc-58447bba98cb162b21c30755e0e237f890160a1e.tar.gz
rawLaTeXBlock: don't expand macros in macro definitions!
Closes #4653. Note that this only affected LaTeX in markdown. Added regression test.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/4653.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command/4653.md b/test/command/4653.md
new file mode 100644
index 000000000..24a706e89
--- /dev/null
+++ b/test/command/4653.md
@@ -0,0 +1,8 @@
+```
+% pandoc -t latex
+\let\tex\TeX
+\renewcommand{\TeX}{\tex\xspace}
+^D
+\let\tex\TeX
+\renewcommand{\TeX}{\tex\xspace}
+```