Open ProfFan opened 2 months ago
I'm not sure what's going on here (sounds like a blogdown bug), but perhaps it will be easier if you just disable the math_method
and load katex in your Hugo template: https://katex.org/docs/browser
This is what I did, but it would be great if the rendering can be done on the server side instead.
I'm not sure what's going on here (sounds like a blogdown bug), but perhaps it will be easier if you just disable the
math_method
and load katex in your Hugo template: https://katex.org/docs/browser
Rendering on the server side makes it possible to view the math expressions offline, but it will also blow up the size of the HTML document. If your goal is to view math offline, you may also consider saving a copy of katex to the static/
folder and link to it in a Hugo template.
math_method: "r-katex"
breaks HTML rendering.If I set it to
r-katex
all generated HTML will have the Rmd header incorrectly added to the HTML: