aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-05-30 12:48:07 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-05-30 12:49:01 -0700
commit7119715a6af7d04d17e40bb76e901c11bf27d3f3 (patch)
tree5fa69e6150a44dec263de27f2bcea8629e822a30 /test
parent0dbbf16c3ab4d158499fecfb171080a448be65c5 (diff)
downloadpandoc-7119715a6af7d04d17e40bb76e901c11bf27d3f3.tar.gz
LaTeX reader `rawLaTeXBlock`: handle macros that resolve to a...
...`\begin` or `\end`. Fixes #4667.
Diffstat (limited to 'test')
-rw-r--r--test/command/4667.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/command/4667.md b/test/command/4667.md
new file mode 100644
index 000000000..1fff3708d
--- /dev/null
+++ b/test/command/4667.md
@@ -0,0 +1,20 @@
+```
+pandoc -t latex
+---
+header-includes:
+- \newcommand{\blandscape}{\begin{landscape}}
+- \newcommand{\elandscape}{\end{landscape}}
+...
+
+\blandscape
+
+testing
+
+\elandscape
+^D
+\begin{landscape}
+
+testing
+
+\end{landscape}
+```