From 2cd7ae0e8320139bfb535dc07debcdfe98ac1977 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Tue, 19 Dec 2023 15:17:28 -0600 Subject: [PATCH] Use mark_html(template = FALSE) instead of options = "-standalone" The option `standalone` will be deprecated and removed in the future. --- R/md-convert.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/md-convert.R b/R/md-convert.R index 76cdd1e..4758517 100644 --- a/R/md-convert.R +++ b/R/md-convert.R @@ -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)