R/moinmoin_to_markdown.R

#' Rudimentary MoinMoin wiki to Markdown converter
#' 
#' @param x character vector of texts to convert
#' 
#' @details
#' At this moment handles fenced code blocks only.
#' 
#' @return Translated text.
#' 
#' @export
moinmoin_to_markdown <- function(x) {
  rval <- gsub("\\{\\{\\{|\\}\\}\\}", "```", x)
  rval
}
mbojan/trac2gh documentation built on May 22, 2019, 12:56 p.m.