mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-03 06:05:45 +00:00
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`.
33 lines
690 B
Markdown
33 lines
690 B
Markdown
```
|
||
% 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>
|
||
```
|