Open athowes opened 3 months ago
Do you know if your rendering worked in the last version of pkgdown (2.0.9)?
This may be a dup of #2734
Yes, on reversion to pkgdown
version 2.0.9. it works.
We had the same issue when setting pkgdown.as_is: true
in the vignettes, as I see you are doing in some vignettes.
What happens is that pkgdown uses mathml by default since 2.1.0, when bookdown uses mathjax. pkgdown.as_is: true
will convert the markdown to mathjax-ready HTML but the mathjax library is no longer loaded by pkgdown.
You have a couple of options to fix this:
pkgdown.as_is: true
but that may break some bookdown specific settings that pkgdown doesn't supportmath_method: mathml
in the relevant vignettes under the html_vignette2
format optionsAnother option (which will have substantial benefits in the long term) is to convert vignettes that use bookdown::html_document2
to quarto, since that will get you back on the fully supported path. (But we should try to fix this buglet regardless).
Hi,
I'm having trouble getting math to render correctly for an R package website built using
pkgdown
.I'm writing vignettes with the following options:
When
template.math-rendering
ismathml
then equations display incorrectly on the rendered website as follows:Alternatively, with
template.math-rendering
asmathjax
then equations do display but in a strange font (this is how the website is currently):Here is my session information:
Any help appreciated, thanks!