Skip to content

Commit

Permalink
close #245: the "latest" version of remark.js is 0.14.1 again gnab/re…
Browse files Browse the repository at this point in the history
…mark#613

also add a note in the documentation about the default 'chakra' value, to make users aware of its drawbacks
  • Loading branch information
yihui committed Mar 2, 2020
1 parent 06e3a6e commit 9679396
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 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.14.1
Version: 0.14.2
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
# contributors ordered alphabetically below
Expand Down
8 changes: 6 additions & 2 deletions R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
#' show an image, and \code{path} is the path to an image (by default, it is
#' Karl).
#' @param chakra A path to the remark.js library (can be either local or
#' remote).
#' remote). Please note that if you use the default remote latest version of
#' remark.js, your slides will not work when you do not have Internet access.
#' They might also be broken after a newer version of remark.js is released.
#' If these issues concern you, you should download remark.js locally (e.g.,
#' via \code{\link{summon_remark}()}), and use the local version instead.
#' @param nature (Nature transformation) A list of configurations to be passed
#' to \code{remark.create()}, e.g. \code{list(ratio = '16:9', navigation =
#' list(click = TRUE))}; see
Expand Down Expand Up @@ -71,7 +75,7 @@
#' # rmarkdown::render('foo.Rmd', 'xaringan::moon_reader')
moon_reader = function(
css = c('default', 'default-fonts'), self_contained = FALSE, seal = TRUE, yolo = FALSE,
chakra = 'https://remarkjs.com/downloads/remark-0.14.0.min.js', nature = list(),
chakra = 'https://remarkjs.com/downloads/remark-latest.min.js', nature = list(),
...
) {
theme = grep('[.]css$', css, value = TRUE, invert = TRUE)
Expand Down
8 changes: 6 additions & 2 deletions man/moon_reader.Rd

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

0 comments on commit 9679396

Please sign in to comment.