Skip to content

Commit afe5bdd

Browse files
committed
rename is_html_output function
1 parent 65a34ac commit afe5bdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resources/rmd/execute.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ execute <- function(input, format, tempDir, libDir, dependencies, cwd, params, r
103103

104104
# determine df_print
105105
df_print <- format$execute$`df-print`
106-
if (df_print == "paged" && !is_html_output(format) && !format$render$`prefer-html`) {
106+
if (df_print == "paged" && !is_pandoc_html_format(format) && !format$render$`prefer-html`) {
107107
df_print <- "kable"
108108
}
109109

@@ -482,7 +482,7 @@ extract_preserve_chunks <- function(output_file, format) {
482482
}
483483
}
484484

485-
is_html_output <- function(format) {
485+
is_pandoc_html_format <- function(format) {
486486
knitr::is_html_output(format$pandoc$to, c("markdown", "epub", "gfm", "commonmark", "commonmark_x", "markua"))
487487
}
488488

0 commit comments

Comments
 (0)