Skip to content

Commit

Permalink
Merge pull request #31 from yihui/patch-1
Browse files Browse the repository at this point in the history
Use `mark_html(template = FALSE)` instead of `options = "-standalone"`
  • Loading branch information
k5cents authored Dec 21, 2023
2 parents 8064882 + 2cd7ae0 commit dd93ec5
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 dd93ec5

Please sign in to comment.