Autoformat
This commit is contained in:
parent
e7921d0503
commit
57d3df15ca
1 changed files with 88 additions and 41 deletions
|
@ -15,13 +15,60 @@ function initializeReveal() {
|
|||
embedded: isPreview() ? true : false,
|
||||
|
||||
// Optional reveal.js plugins
|
||||
dependencies: [
|
||||
{ src: '/static/revealjs/lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
||||
{ src: '/static/revealjs/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||
{ src: '/static/revealjs/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); }, callback: function() { externalLinksInNewWindow(); } },
|
||||
{ src: '/static/revealjs/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
||||
{ src: '/static/revealjs/plugin/zoom-js/zoom.js', async: true },
|
||||
{ src: '/static/revealjs/plugin/notes/notes.js', async: true }
|
||||
dependencies: [{
|
||||
src: '/static/reveal.js/lib/js/classList.js',
|
||||
condition: function() {
|
||||
return !document.body.classList;
|
||||
}
|
||||
},
|
||||
|
||||
// Interpret Markdown in <section> elements
|
||||
{
|
||||
src: '/static/reveal.js/plugin/markdown/marked.js',
|
||||
condition: function() {
|
||||
return !!document.querySelector('[data-markdown]');
|
||||
}
|
||||
}, {
|
||||
src: '/static/reveal.js/plugin/markdown/markdown.js',
|
||||
condition: function() {
|
||||
return !!document.querySelector('[data-markdown]');
|
||||
}
|
||||
},
|
||||
|
||||
// Syntax highlight for <code> elements
|
||||
{
|
||||
src: '/static/reveal.js/plugin/highlight/highlight.js',
|
||||
async: true,
|
||||
callback: function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
}
|
||||
},
|
||||
|
||||
// Zoom in and out with Alt+click
|
||||
{
|
||||
src: '/static/reveal.js/plugin/zoom-js/zoom.js',
|
||||
async: true
|
||||
},
|
||||
|
||||
// Speaker notes
|
||||
{
|
||||
src: '/static/reveal.js/plugin/notes/notes.js',
|
||||
async: true
|
||||
},
|
||||
|
||||
// MathJax
|
||||
{
|
||||
src: '/static/reveal.js/plugin/math/math.js',
|
||||
async: true
|
||||
}
|
||||
|
||||
{
|
||||
src: '/static/reveal.js/static/revealjs/lib/js/classList.js',
|
||||
condition: function() {
|
||||
return !document.body.classList;
|
||||
}
|
||||
}
|
||||
d
|
||||
]
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue