Skip to content

Commit

Permalink
add an option to indicate xaringan's output format (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Mar 18, 2022
1 parent 08455bc commit d585751
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: xaringan
Type: Package
Title: Presentation Ninja
Version: 0.23.2
Version: 0.23.3
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
# contributors ordered alphabetically below
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- In JAWS 16.0.2136 or later, users must keep turning on a setting called "Allow Web Application Reserved Keystrokes," which is enabled by default.
- The shortcut keys available on the slide help page (press `h` on any slide to obtain them) are supported.

- Correctly print output from `sql` chunks as tables (thanks, @thohan88 @gadenbuie @cderv, #307).

# CHANGES IN xaringan VERSION 0.23

- Preserve text wrapping in the `xaringan::moon_reader` output to avoid issues like #345 (thanks, @ellessenne @cderv).
Expand Down
6 changes: 4 additions & 2 deletions R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ moon_reader = function(
rmarkdown::knitr_options(knit_hooks = highlight_hooks),
NULL, clean_supporting = self_contained,
pre_knit = function(input, ...) {
# don't use Pandoc raw blocks ```{=} (#293)
opts <<- options(htmltools.preserve.raw = FALSE)
opts <<- options(
htmltools.preserve.raw = FALSE, # don't use Pandoc raw blocks ```{=} (#293)
xaringan.format = 'moon_reader' # indicate xaringan's output format
)
}
pre_processor = function(
metadata, input_file, runtime, knit_meta, files_dir, output_dir
Expand Down

0 comments on commit d585751

Please sign in to comment.