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,
|
embedded: isPreview() ? true : false,
|
||||||
|
|
||||||
// Optional reveal.js plugins
|
// Optional reveal.js plugins
|
||||||
dependencies: [
|
dependencies: [{
|
||||||
{ src: '/static/revealjs/lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
src: '/static/reveal.js/lib/js/classList.js',
|
||||||
{ src: '/static/revealjs/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
condition: function() {
|
||||||
{ src: '/static/revealjs/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); }, callback: function() { externalLinksInNewWindow(); } },
|
return !document.body.classList;
|
||||||
{ 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 }
|
|
||||||
|
// 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