Use from_rmarkdown() to build from part of the format
This should have been done this way in #75 when support was added for `md_extensions`
diff --git a/R/revealjs_presentation.R b/R/revealjs_presentation.R
index 360465b..542df58 100644
--- a/R/revealjs_presentation.R
+++ b/R/revealjs_presentation.R
@@ -236,10 +236,7 @@
knitr = knitr_options_html(fig_width, fig_height, fig_retina, keep_md),
pandoc = pandoc_options(
to = "revealjs",
- from = rmarkdown_format(paste0(
- md_extensions,
- ifelse(fig_caption, "", "-implicit_figures")
- )),
+ from = from_rmarkdown(fig_caption, md_extensions),
args = args
),
keep_md = keep_md,