Skip to content

Add --math-method option and make mathml the default - #11826

Open
jgm wants to merge 2 commits into
mainfrom
html-math-method
Open

Add --math-method option and make mathml the default#11826
jgm wants to merge 2 commits into
mainfrom
html-math-method

Conversation

@jgm

@jgm jgm commented Aug 22, 2026

Copy link
Copy Markdown
Owner

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`.

Closes #11751.
Closes #5254.

@jgm
jgm force-pushed the html-math-method branch from 7568875 to 201dd05 Compare August 22, 2026 06:28
jgm added 2 commits August 22, 2026 10:04
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`.
@jgm
jgm force-pushed the html-math-method branch from 201dd05 to b27d90f Compare August 22, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it possible to switch EPUB3 writer to plain math mode Set MathML as the default writerHTMLMathMethod

1 participant