aboutsummaryrefslogtreecommitdiff
path: root/test/command
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
parent41209ea6765e9898d7e15c4c945c06275b6c0420 (diff)
downloadpandoc-013fd1c6b68f2c061202d931f541aa4877ae543f.tar.gz
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')
-rw-r--r--test/command/3494.md3
-rw-r--r--test/command/3577.md2
-rw-r--r--test/command/write18.md14
3 files changed, 18 insertions, 1 deletions
diff --git a/test/command/3494.md b/test/command/3494.md
index 7c480fde6..534041246 100644
--- a/test/command/3494.md
+++ b/test/command/3494.md
@@ -25,7 +25,8 @@
<td style="text-align: left;">thank you</td>
</tr>
<tr class="odd">
-<td style="text-align: right;"><em>blah</em></td>
+<td style="text-align: right;">
+<p><em>blah</em></p></td>
<td style="text-align: left;"><em>blah</em></td>
<td style="text-align: left;"><em>blah</em></td>
</tr>
diff --git a/test/command/3577.md b/test/command/3577.md
index dc88937e9..ca9dba97c 100644
--- a/test/command/3577.md
+++ b/test/command/3577.md
@@ -15,9 +15,11 @@
\caption{Subfigure with Subfloat}
\end{figure}
^D
+
<figure>
<img src="img1.jpg" alt="Caption 1" /><figcaption>Caption 1</figcaption>
</figure>
+
<figure>
<img src="img2.jpg" alt="Caption 2" /><figcaption>Caption 2</figcaption>
</figure>
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}"]
+```