#' Fix comma formatting
#'
#' Call this function to format all commas selected with one space before and one after
#'
#' @export
fixCommas <- function() {
seltxt <- rstudioapi::getActiveDocumentContext()
rstudioapi::insertText(gsub(" *, *", ", ", seltxt$selection[[1]]$text))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.