md_to_xml | R Documentation |
Convert markdown to XML
md_to_xml(md)
md |
a character vector of markdown text |
an XML nodeset of the markdown text
if (requireNamespace("withr")) {
withr::with_namespace("tinkr", {
md_to_xml(c(
"## This is a new section of markdown",
"",
"Each new element",
"Is converted to a new line of markdown text",
"",
"```{r code-example, echo = FALSE}",
"cat('code blocks work well here, too')",
"```",
"",
"Neat, right?"
))
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.