summaryrefslogtreecommitdiff
path: root/test/command/write18.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-07-12 13:58:47 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-07-12 14:50:49 +0200
commit013fd1c6b68f2c061202d931f541aa4877ae543f (patch)
tree7109ba8de0633f292d48ba673670833f657b1b08 /test/command/write18.md
parent41209ea6765e9898d7e15c4c945c06275b6c0420 (diff)
Make sure \write18 is parsed as raw LaTeX.
The change is in the LaTeX reader's treatment of raw commands, but it also affects the Markdown reader.
Diffstat (limited to 'test/command/write18.md')
-rw-r--r--test/command/write18.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/command/write18.md b/test/command/write18.md
new file mode 100644
index 000000000..344dfc8cf
--- /dev/null
+++ b/test/command/write18.md
@@ -0,0 +1,14 @@
+Handle \write18{..} as raw tex:
+```
+% pandoc -t native
+\write18{git --version}
+^D
+[RawBlock (Format "latex") "\\write18{git --version}"]
+```
+
+```
+% pandoc -f latex+raw_tex -t native
+\write18{git --version}
+^D
+[RawBlock (Format "latex") "\\write18{git --version}"]
+```