Releases: rstudio/markdown
markdown 1.3
-
Switched the underlying Markdown rendering engine from the C library sundown (which has been deprecated for a decade) to the R package commonmark (thanks, @jeroen, yihui/knitr#1329).
-
The functions
renderMarkdown()
andmarkdownToHTML()
have been renamed tomark()
andmark_html()
, respectively. The old names are still kept in this package for backward-compatibility. -
Removed the arguments
stylesheet
andfragment.only
inmark_html()
. Forstylesheet
, please use the argumentmeta = list(css = ...)
to provide the CSS stylesheet. Forfragment.only
, please usemark_html(template = FALSE)
instead offragment.only = TRUE
. Currently these old arguments are still accepted internally, but may be deprecated and dropped in the long run. -
The
file
argument ofmark()
andmark_html()
can also take a character vector of Markdown text now. -
Removed functions
rendererExists()
,rendererOutputType()
, andregisteredRenderer()
. They were primarily for internal use. -
Deprecated the function
markdownExtensions()
. All extensions should be specified via theoptions
argument of functions likemark()
, e.g.,mark(options = '+table+tasklist')
. See all options on the help page?markdown::markdown_options
. -
Renamed
markdownHTMLOptions()
tomarkdown_options()
.