kymotz
December 10, 2021, 12:56pm
1
I wish to have equations stored as MathML on my static Blogdown site, so I wrote in my front matter (I use .Rmd
extension to enjoy pandoc):
output:
blogdown::html_page:
pandoc_args: --mathml
Which doesn't work and I still get <span class="math">
containing raw LaTeX in my output. I checked the console and I found --mathjax
argument at the end of the command passed to pandoc. It read like
"C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS foo.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output foo.html~ {{something unrelated}} --mathml {{something unrelated}} --mathjax
I think that default --mathjax
overrode my --mathml
. What should I do to cancel it? Thanks for any help.
cderv
December 10, 2021, 5:31pm
2
Yes Mathjax is used by default in almost all the format. You need to deactivate it.
See help page for the format
This function is a simple wrapper of bookdown::html_document2()
with different default arguments, and more importantly, a special HTML
template designed only for blogdown to render R Markdown to HTML pages
that can be processed by Hugo.
The function is based on bookdown::html_document2()
, which is based on rmarkdown::html_document()
You'll find the mathjax
argument that you need to set to NULL
So probably this would work
output:
blogdown::html_page:
mathjax: NULL
pandoc_args: --mathml
Hope it helps
1 Like
system
Closed
December 17, 2021, 5:31pm
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.