mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 21:25:48 +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`.
11 lines
177 B
Markdown
11 lines
177 B
Markdown
```
|
|
% pandoc -t html --math-method=mathjax
|
|
\begin{equation}
|
|
E=mc^2
|
|
\end{equation}
|
|
^D
|
|
<p><span class="math display">\[\begin{equation}
|
|
E=mc^2
|
|
\end{equation}\]</span></p>
|
|
```
|