MathJax/MathML deprecation warnings
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- r
- Domain
- documentation
Research direction
Start with the math-rendering option and the linked code in R/markdown.R around line 143, then check how pkgdown builds Pandoc command-line arguments. Update the deprecated MathML and MathJax options to the documented --math-method form while preserving support for the supported Pandoc versions. Done when builds no longer emit these deprecation warnings.
Written by the indexing model from the issue text.
Description
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.
https://github.com/r-lib/pkgdown/blob/f69b62a7e74b58b42170284b6f3f56c674e7a3f8/R/markdown.R#L143
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
- Dominant language
- R
- Stars
- 777
- Forks
- 361
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from r-lib/pkgdown
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
favicons fallback on raster.png due to smart quote in inst/BS5/templates/head.htmlPossibly taken @njtierney claimed this 122 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
garner-code/PsyR#65 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
microsoft/ML-For-Beginners#1063 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
larmarange/ggstats#132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microbiome/OMA#911 ·