Files
John MacFarlane c73a35a2e7 Add --math-method option.
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`.
2026-08-26 09:46:48 -07:00

690 B
Raw Permalink Blame History

% 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 &amp; = 2 \\
\sin(y) &amp; = 0.5
\end{align*}\]</span></p>
<p>This is Eulers formula:
<span class="math display">\[\begin{eqnarray*}
e^{i\pi} + 1 &amp; = &amp; 0.
\end{eqnarray*}\]</span></p>