pandoc | R Documentation |
Reads an html file and substitutes elements of class "math display"
and
"math inline"
with rendered html math. This is mainly intended as a
post-processing step for pandoc, which generates such html for equations.
As a result the math can be displayed without the need for including the
mathjax library in the html document.
render_math_in_html(
input,
output = NULL,
...,
throwOnError = FALSE,
include_css = TRUE
)
input |
path to the html input file |
output |
path to the output html file, or NULL to return as string |
... |
additional html rendering options passed to katex.render |
throwOnError |
should invalid math raise an error in R? See katex options |
include_css |
automatically inject the required katex css in the html head |
Other katex:
katex
,
math_to_rd()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.