add 'plugins' config option, new way of registering es5 plugins
This commit is contained in:
@ -22,17 +22,16 @@
|
||||
</div>
|
||||
|
||||
<script src="dist/reveal.min.js"></script>
|
||||
<script src="dist/plugin/markdown.js"></script>
|
||||
<script src="dist/plugin/highlight.js"></script>
|
||||
<script src="dist/plugin/notes.js"></script>
|
||||
<script>
|
||||
// More info about config & dependencies:
|
||||
// - https://github.com/hakimel/reveal.js#configuration
|
||||
// - https://github.com/hakimel/reveal.js#dependencies
|
||||
Reveal.initialize({
|
||||
hash: true,
|
||||
dependencies: [
|
||||
{ src: 'dist/plugin/markdown.js' },
|
||||
{ src: 'dist/plugin/highlight.js' },
|
||||
{ src: 'dist/plugin/notes.js' }
|
||||
]
|
||||
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user