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
)
path to the html input file
path to the output html file, or NULL to return as string
additional html rendering options passed to katex.render
should invalid math raise an error in R? See katex options
automatically inject the required katex css in the html head
Other katex:
katex
,
math_to_rd()