support for zoom, search, and notes reveal.js plugins
diff --git a/inst/NEWS b/inst/NEWS
index 9c5ff24..8f2c072 100644
--- a/inst/NEWS
+++ b/inst/NEWS
@@ -5,6 +5,8 @@
- Respect slide_level option
+- Support for zoom, search, and notes reveal.js plugins
+
Version 0.6
-----------------------------------------------------------------------
@@ -16,4 +18,4 @@
Version 0.5
-----------------------------------------------------------------------
-- Initial relase to CRAN
\ No newline at end of file
+- Initial relase to CRAN
diff --git a/inst/rmarkdown/templates/revealjs_presentation/resources/default.html b/inst/rmarkdown/templates/revealjs_presentation/resources/default.html
index ef9c50e..49bd060 100644
--- a/inst/rmarkdown/templates/revealjs_presentation/resources/default.html
+++ b/inst/rmarkdown/templates/revealjs_presentation/resources/default.html
@@ -284,7 +284,17 @@
$endif$
// Optional reveal.js plugins
- dependencies: []
+ dependencies: [
+$if(plugin-notes)$
+ { src: '$revealjs-url$/plugin/notes/notes.js', async: true },
+$endif$
+$if(plugin-search)$
+ { src: '$revealjs-url$/plugin/search/search.js', async: true },
+$endif$
+$if(plugin-zoom)$
+ { src: '$revealjs-url$/plugin/zoom-js/zoom.js', async: true },
+$endif$
+ ]
});
</script>
$if(mathjax-url)$