rmarkdown::html_document fails to use MathJax if a custom HTML
template is supplied. This is described here
https://github.com/rstudio/rmarkdown/issues/727. The workaround
is to provide this wrapper.
Name of template file.
Any arguments passed along to html_document in rmarkdown
This function is needed only so as to "fool" pandoc in order to
make an HTML document compatible with MathJax. See the example
files created by
initWriteup("rmd2html-guide") for a usage
html_document object with custom template
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.