-
Notifications
You must be signed in to change notification settings - Fork 761
Description
As the title says, equations written with $$ $$
or $ $
get turned into an image when doing devtools::build_readme()
.
You can see the example in my repo, but it boils down to
$$
Y = X_0 \beta_1 + X_2\beta_2 + u
$$
being transformed into

which is not an issue for Github readme, but when using devtools::build_site()
, I guess it takes README.md as a source, which breaks the package site, like so.

This was not a problem when using pkgdown 2.0.9, but when I last updated it, it broke.
FWIW I am using devtools 2.4.5.900 and pkgdown 2.1.3.9000
I have tried manually rendering README.rmd
and changing the output to
---
output:
md_document:
variant: gfm
---
but the result has been the same.
Real example
README.Rmd
https://github.com/marcboschmatas/partialling.out/blob/main/README.Rmd
Readme.md
https://github.com/marcboschmatas/partialling.out/blob/main/README.md
https://raw.githubusercontent.com/marcboschmatas/partialling.out/refs/heads/main/README.md