pandoc {katex} | R Documentation |
Renders math in HTML document
Description
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.
Usage
render_math_in_html(
input,
output = NULL,
...,
throwOnError = FALSE,
include_css = TRUE
)
Arguments
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 |
See Also
Other katex:
katex
,
math_to_rd()
[Package katex version 1.4.1 Index]