Skip to content
Prev 60585 / 63424 Next

Bundling MathJax

Just a status update:

Thanks to Jeroen and others for pointing out KaTeX, which I had not
used before but indeed seems preferable in many respects. I don't
think build-time rendering is a feasible choice given the dependency
implications, but I have now added KaTeX as another (and the default)
alternative for client-side rendering.

Currently, KaTeX is served from a CDN. The plan is to ship a copy of
KaTeX with R by the time R 4.2.0 is released, but we have not yet
decided on the best way to do that.

If you want MathJax, set

Sys.setenv("_R_HELP_ENABLE_ENHANCED_HTML_" = TRUE)
options(help.htmlmath = "mathjax")

This will use the local copy from mathjaxr if it is installed, and a
CDN otherwise.

Best,
-Deepayan
On Tue, Mar 15, 2022 at 5:12 PM Jan Net?k <netikja at gmail.com> wrote: