Skip to content

Commit

Permalink
Improve documentation by specifying the html formats that can exclude…
Browse files Browse the repository at this point in the history
…d from is_html_output() (#2058)

The formats that can be excluded from being considered `html` with `is_html_output()` are explained here: https://bookdown.org/yihui/rmarkdown-cookbook/latex-html.html#latex-html but not in the help file.
  • Loading branch information
jtr13 authored Oct 9, 2021
1 parent 00469e0 commit e2d91b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ is_latex_output = function() {
#' provided, \code{is_html_output()} uses \code{pandoc_to()}, and
#' \code{pandoc_to()} returns the output format name.
#' @param excludes A character vector of output formats that should not be
#' considered as HTML format.
#' considered as HTML format. Options are: markdown, epub, html, html4, html5,
#' revealjs, s5, slideous, slidy, and gfm.
#' @rdname output_type
#' @export
is_html_output = function(fmt = pandoc_to(), excludes = NULL) {
Expand Down
3 changes: 2 additions & 1 deletion man/output_type.Rd

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

0 comments on commit e2d91b7

Please sign in to comment.