-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 & = 2 \\ | ||
\sin(y) & = 0.5 | ||
\end{align*}\]</span></p> | ||
<p>This is Euler’s formula: <span class="math display">\[\begin{eqnarray*} | ||
e^{i\pi} + 1 & = & 0. | ||
\end{eqnarray*}\]</span></p> | ||
``` |