From e0ab09611a8ab42c69da81ed3fd3c3df8c0c70de Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 26 Jul 2017 12:50:36 +0200 Subject: 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. --- test/command/3816.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test/command/3816.md (limited to 'test/command/3816.md') 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 +

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*}\]

+``` -- cgit v1.2.3 From 303d10d07b45576cb3542e36d11ced51c01e465c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 26 Jul 2017 12:55:15 +0200 Subject: Small tweak in test (add --wrap=preserve). --- test/command/3816.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'test/command/3816.md') diff --git a/test/command/3816.md b/test/command/3816.md index dba37bfec..3979ea9ab 100644 --- a/test/command/3816.md +++ b/test/command/3816.md @@ -1,5 +1,5 @@ ``` -% pandoc --mathjax -t html5 +% pandoc --mathjax -t html5 --wrap=preserve This is an equation: \begin{equation} y+2 = 3 @@ -16,14 +16,17 @@ This is Euler's formula: e^{i\pi} + 1 & = & 0. \end{eqnarray*} ^D -

This is an equation: \[\begin{equation} +

This is an equation: +\[\begin{equation} y+2 = 3 \end{equation}\]

-

This is a system of equations: \[\begin{align*} +

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*} +

This is Euler’s formula: +\[\begin{eqnarray*} e^{i\pi} + 1 & = & 0. \end{eqnarray*}\]

``` -- cgit v1.2.3