texToRmd <- function() {
context <- rstudioapi::getActiveDocumentContext()
where <- rstudioapi::primary_selection(context)
rstudioapi::insertText(where$range,
translate_tex(where$text),
context$id)
}
unbreak_lines <- function() {
context <- rstudioapi::getActiveDocumentContext()
where <- rstudioapi::primary_selection(context)
rstudioapi::insertText(where$range,
simplify_paragraphs(where$text),
context$id)
}
untex_table <- function() {
context <- rstudioapi::getActiveDocumentContext()
where <- rstudioapi::primary_selection(context)
rstudioapi::insertText(where$range,
latex2md_tables(where$text),
context$id)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.