Rendering Math to HTML and MathML in R
Convert latex math expressions to HTML for use in markdown documents or package manual pages. The rendering is done in R using the V8 engine, which eliminates the need for embedding the MathJax library in the web pages.
Install directly from r-universe:
# Install from our universe
options(repos = c(
ropensci = 'https://ropensci.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))
install.packages('katex')
Docs: https://docs.ropensci.org/katex/reference/katex.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.