test_that("known symbols", {
expect_equal(translate_latexmath(pi), latexmath("\\pi"))
expect_equal(translate_latexmath("pi"), latexmath("pi"))
# quoted object
expect_equal(translate_latexmath_(quote(pi)), latexmath("\\pi"))
expect_equal(translate_latexmath_(quote("pi")), latexmath("pi"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.