Merge pull request #36 from BruceZhaoR/revealjs-3.3.0
Standalone PR: upgrade to reveal.js-3.3.0
diff --git a/R/revealjs_presentation.R b/R/revealjs_presentation.R
index e27cb1c..99174c7 100644
--- a/R/revealjs_presentation.R
+++ b/R/revealjs_presentation.R
@@ -196,8 +196,9 @@
if (!self_contained || identical(.Platform$OS.type, "windows"))
revealjs_path <- relative_to(
output_dir, render_supporting_files(revealjs_path, lib_dir))
- args <- c(args, "--variable", paste("revealjs-url=",
- pandoc_path_arg(revealjs_path), sep=""))
+ else
+ revealjs_path <- pandoc_path_arg(revealjs_path)
+ args <- c(args, "--variable", paste0("revealjs-url=", revealjs_path))
# highlight
args <- c(args, pandoc_highlight_args(highlight, default = "pygments"))