Skip to content

MathJax/MathML deprecation warnings #3035

Open

Description

@froggleston

The current math-rendering option is based on the now deprecated pandoc options mathml and mathjax, and as such any builds using deprecation-marked versions of pandoc, especially of multiple files, will result in a potentially large number of unresolvable deprecation warnings, e.g. from a sandpaper build process

── Creating citation page ────────────────────────────────────────────────────────
! No yaml header found in the first 10 lines of CITATION.md
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
Writing `instructor/introduction-r-rstudio.html`
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
Writing `introduction-r-rstudio.html`
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
Writing `instructor/visualizing-ggplot.html`
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
Writing `visualizing-ggplot.html`
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
Writing `instructor/how-r-thinks-about-data.html`
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
Writing `how-r-thinks-about-data.html`
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.
[WARNING] Deprecated: --mathml. Use --math-method=mathml instead.

"template.math-rendering",

The correct options for pandoc 3.11 and above are of the format --math-method=mathml or --math-method=mathjax: https://pandoc.org/demo/example33/3.6-math-rendering.html

Relevant pandoc options

Activity

  1. remlapmot commented on Nov 4, 2026

    @remlapmot
    Contributor

    I think I did solve this with #3023 - hopefully the maintainers will get around to reviewing pkgdown PRs sometime soon.

  2. froggleston commented on Nov 4, 2026

    @froggleston
    Author

    Ah, that's great @remlapmot - I should have checked the open PRs first!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions