equation <- "\\frac{\\Sigma(|positive|)-\\Sigma(|negative|)}{\\Sigma(|positive|)+\\Sigma(|negative|)}x100" html <- knitr::is_html_output() rd <- !html
katex::katex_html(equation)
katex::math_to_rd(equation)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.