# .swapEquations ----------------------------------------------------------
.swapEquations <- function(doc){
doc %>%
{gsub('\\\\begin\\{equation\\}','\\$\\$',.,perl=T)} %>%
{gsub('\\\\end\\{equation\\}','\\$\\$',.,perl=T)}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.