-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Math rendering with bookdown::html_document2
and pkgdown::build_articles
#2739
Comments
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 |
We had the same issue when setting What happens is that pkgdown uses mathml by default since 2.1.0, when bookdown uses mathjax. You have a couple of options to fix this:
|
Another option (which will have substantial benefits in the long term) is to convert vignettes that use |
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!
The text was updated successfully, but these errors were encountered: