Skip to content

Commit

Permalink
Adapt github_document() format for @includeRmd (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv authored Mar 24, 2022
1 parent fd6b74c commit c162e25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# roxygen2 (development version)

* `@includeRmd` is now adapted to change in rmarkdown 2.12 regarding math support in `github_document()` (#1304).

# roxygen2 7.1.2

* The new `@examplesIf` tag can be used to create conditional
Expand Down
5 changes: 4 additions & 1 deletion R/rd-include-rmd.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ roxy_tag_rd.roxy_tag_includeRmd <- function(x, base_path, env) {

rmarkdown::render(
rmd_path,
output_format = rmarkdown::github_document(),
output_format = rmarkdown::github_document(html_preview = FALSE),
output_options = list(
if (packageVersion("rmarkdown") >= "2.12") math_method = NULL
),
output_file = md_path,
quiet = TRUE,
envir = new_environment(parent = global_env())
Expand Down

0 comments on commit c162e25

Please sign in to comment.