mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +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`.
560 B
560 B
% pandoc --math-method=webtex
$T_n={n+1 \choose 2}$
^D
<p><img style="vertical-align:middle"
src="https://latex.codecogs.com/png.latex?%5Ctextstyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D"
alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}"
class="math inline" /></p>
% pandoc --math-method=webtex
$$T_n={n+1 \choose 2}$$
^D
<p><img style="vertical-align:middle"
src="https://latex.codecogs.com/png.latex?%5Cdisplaystyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D"
alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}"
class="math display" /></p>