mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
c73a35a2e7
This replaces (now deprecated but still functional) options `--mathml`, `--mathjax`, `--gladtex`, `--katex`, `--webtex`. The `plain` style can now be specified explicitly. In defaults files, `html-math-method` is now `math-method` (though `html-math-method` will still work). Text.Pandoc.App.Opt: - In unexported type CompletionKind, add MathMethods. - In Opt, change `optHTMLMathMethod` to `optMathMethod`. [API change] Text.Pandoc.Options: - Rename HTMLMathMethod type to MathMethod. [API change] - Rename `writerHTMLMathMethod` field of WriterOptions to `writerMathMethod`. [API change] Text.Pandoc.App.Completion: - Clean up code. - Add support for `--math-method`.
690 B
690 B
% pandoc --math-method=mathjax -t html5 --wrap=preserve
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>