plugins can be direct references or factory functions
This commit is contained in:
14
demo.html
14
demo.html
@ -413,11 +413,11 @@ Reveal.on( 'customevent', function() {
|
||||
<script type="module">
|
||||
|
||||
import Reveal from '/dist/reveal.js';
|
||||
import zoom from '/plugin/zoom/zoom.js';
|
||||
import notes from '/plugin/notes/notes.js';
|
||||
import search from '/plugin/search/search.js';
|
||||
import markdown from '/plugin/markdown/markdown.js';
|
||||
import highlight from '/plugin/highlight/highlight.js';
|
||||
import Zoom from '/plugin/zoom/zoom.js';
|
||||
import Notes from '/plugin/notes/notes.js';
|
||||
import Search from '/plugin/search/search.js';
|
||||
import Markdown from '/plugin/markdown/markdown.js';
|
||||
import Highlight from '/plugin/highlight/highlight.js';
|
||||
|
||||
// More info https://github.com/hakimel/reveal.js#configuration
|
||||
Reveal.initialize({
|
||||
@ -428,8 +428,8 @@ Reveal.on( 'customevent', function() {
|
||||
|
||||
transition: 'slide', // none/fade/slide/convex/concave/zoom
|
||||
|
||||
// More info https://github.com/hakimel/reveal.js#dependencies
|
||||
plugins: [ zoom(), notes(), search(), markdown(), highlight() ]
|
||||
// More info https://github.com/hakimel/reveal.js#plugins
|
||||
plugins: [ Zoom, Notes, Search, Markdown, Highlight ]
|
||||
});
|
||||
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user