R/stars_to_bold.r

#' @export
#' 
stars_to_bold <- function (text) {
    out <- gsub("([[:digit:]]+)\\.([[:digit:]]+)\\^\\{\\*+\\}",
                "\\\\textbf{\\1}.\\\\textbf{\\2}", text)
    cat(out, sep = "\n")
    invisible(out)
}
devincaughey/CaugheyTools documentation built on May 9, 2021, 12:44 p.m.