Files
pandoc/test/command/6739.md
John MacFarlane 6753f6b360 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-22 10:04:09 -07:00

482 B

% pandoc -f gfm
* `--argument` This item does not have a pipe character
* `--argA | --argB` This item has a pipe character
^D
<ul>
<li><code>--argument</code> This item does not have a pipe
character</li>
<li><code>--argA | --argB</code> This item has a pipe character</li>
</ul>
% pandoc --math-method=mathjax -f gfm+tex_math_dollars
* $|x|$
* $|y|$
^D
<ul>
<li><span class="math inline">\(|x|\)</span></li>
<li><span class="math inline">\(|y|\)</span></li>
</ul>