summaryrefslogtreecommitdiff
path: root/test/command/3816.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-07-26 12:50:36 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-07-26 12:50:36 +0200
commite0ab09611a8ab42c69da81ed3fd3c3df8c0c70de (patch)
tree6465265326a1a2e8a0af5881da2d25c3242102dd /test/command/3816.md
parent2daab579f4eef9ef61da460c731a45a77433a472 (diff)
HTML writer: render raw inline environments when --mathjax used.
We previously did this only with raw blocks, on the assumption that math environments would always be raw blocks. This has changed since we now parse them as inline environments. Closes #3816.
Diffstat (limited to 'test/command/3816.md')
-rw-r--r--test/command/3816.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/command/3816.md b/test/command/3816.md
new file mode 100644
index 000000000..dba37bfec
--- /dev/null
+++ b/test/command/3816.md
@@ -0,0 +1,29 @@
+```
+% pandoc --mathjax -t html5
+This is an equation:
+\begin{equation}
+y+2 = 3
+\end{equation}
+
+This is a system of equations:
+\begin{align*}
+x^2+y^2 & = 2 \\
+\sin(y) & = 0.5
+\end{align*}
+
+This is Euler's formula:
+\begin{eqnarray*}
+e^{i\pi} + 1 & = & 0.
+\end{eqnarray*}
+^D
+<p>This is an equation: <span class="math display">\[\begin{equation}
+y+2 = 3
+\end{equation}\]</span></p>
+<p>This is a system of equations: <span class="math display">\[\begin{align*}
+x^2+y^2 &amp; = 2 \\
+\sin(y) &amp; = 0.5
+\end{align*}\]</span></p>
+<p>This is Euler’s formula: <span class="math display">\[\begin{eqnarray*}
+e^{i\pi} + 1 &amp; = &amp; 0.
+\end{eqnarray*}\]</span></p>
+```