rstudio / revealjs

R Markdown Format for reveal.js Presentations
Other
325 stars 86 forks source link

Allow any configuration to be passed to `Reveal.initialize` as with xaringan ? #113

Open cderv opened 2 years ago

cderv commented 2 years ago

xaringan is based on remark.js and it allows to pass any option in nature: inside moon_reader() function. The list of option will be passed in %s to var slideshow = remark.create(%s)

This allows to support any field key in xaringan::moon_reader() to use any option documented in https://github.com/gnab/remark/wiki/Configuration

This is also because xaringan uses last available remark version. This way the package does not need to be updated each time there is a new remark.js version as configuration are missing.

Related to #112 about missing option.

If we allow to use any reveal.js version (like an externally provided one), we should probably support this.