Skip to content

Commit

Permalink
add markdownExtensions() back for now: rstudio/learnr#745
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Oct 27, 2022
1 parent a260f06 commit c1c1ca1
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Makefile
inst/RnwToMd.R
^\.travis\.yml$
^\.github$
^revdep$
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

export(markdownExtensions)
export(markdownOptions)
export(markdownToHTML)
export(renderMarkdown)
Expand Down
14 changes: 14 additions & 0 deletions R/renderMarkdown.R
Original file line number Diff line number Diff line change
Expand Up @@ -382,3 +382,17 @@ pkg_file = function(...) system.file(..., package = 'markdown', mustWork = TRUE)

# TODO: remove this function when revdeps have been fixed
.b64EncodeFile = function(...) xfun::base64_uri(...)

#' Deprecated
#'
#' Please specify extensions via the \code{options} argument instead.
#' @export
#' @keywords internal
markdownExtensions = function(...) {
# TODO: remove this function in future
warning(
"The function 'markdownExtensions()' has been deprecated in the markdown package. ",
"Please specify extensions via the `options` argument instead."
)
NULL
}
12 changes: 12 additions & 0 deletions man/markdownExtensions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/markdownToHTML.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c1c1ca1

Please sign in to comment.