Skip to content

Commit

Permalink
Use from_rmarkdown() to build from part of the format
Browse files Browse the repository at this point in the history
This should have been done this way in #75 when support was added for `md_extensions`
  • Loading branch information
cderv committed Sep 23, 2021
1 parent 2f01dc9 commit ad3a575
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/revealjs_presentation.R
Expand Up @@ -236,10 +236,7 @@ revealjs_presentation <- function(incremental = FALSE,
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,
Expand Down

0 comments on commit ad3a575

Please sign in to comment.