add css argument
diff --git a/R/revealjs_presentation.R b/R/revealjs_presentation.R
index 9a41437..82691b2 100644
--- a/R/revealjs_presentation.R
+++ b/R/revealjs_presentation.R
@@ -86,6 +86,7 @@
highlight = "default",
mathjax = "default",
template = "default",
+ css = NULL,
includes = NULL,
keep_md = FALSE,
lib_dir = NULL,
@@ -138,6 +139,10 @@
# content includes
args <- c(args, includes_to_pandoc_args(includes))
+ # additional css
+ for (css_file in css)
+ args <- c(args, "--css", pandoc_path_arg(css_file))
+
# pre-processor for arguments that may depend on the name of the
# the input file (e.g. ones that need to copy supporting files)
pre_processor <- function(metadata, input_file, runtime, knit_meta, files_dir,