Skip to content

Commit

Permalink
Use mark_html(template = FALSE) instead of options = "-standalone"
Browse files Browse the repository at this point in the history
The option `standalone` will be deprecated and removed in the future.
  • Loading branch information
yihui authored Dec 19, 2023
1 parent 8064882 commit 2cd7ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/md-convert.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ md_convert <- function(x, frag = TRUE, disallow = TRUE) {
if (!has_markdown()) {
stop("Package 'markdown' needed for this function to work.")
} else {
html <- markdown::mark_html(text = x, options = c(
if (frag) "-standalone", "-smart", "-tasklist"
html <- markdown::mark_html(text = x, template = !frag, options = c(
"-smart", "-tasklist"
))
if (disallow) {
md_disallow(html)
Expand Down

0 comments on commit 2cd7ae0

Please sign in to comment.