#' Title
#'
#' @return
#' @export
#'
#' @examples none
get_selection <- function(){
context <- rstudioapi::getActiveDocumentContext()
selection <<- context$selection[[1]]$text
selection
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.