diff options
author | J.D. Fitz.Gerald <jd@jdfitzgerald.net> | 2014-02-28 16:23:05 +0000 |
---|---|---|
committer | J.D. Fitz.Gerald <jd@jdfitzgerald.net> | 2014-02-28 16:23:05 +0000 |
commit | 7d25ef8aaf0ad8739cdf22a57c241a14cd63f3cc (patch) | |
tree | 0b5cac9e4606f41a5b325dad7c487c346e1408a3 /index.html | |
parent | d939c4790e25b1a444c416327d568ea9013396e0 (diff) | |
download | fosdem-2018-presentation-7d25ef8aaf0ad8739cdf22a57c241a14cd63f3cc.tar fosdem-2018-presentation-7d25ef8aaf0ad8739cdf22a57c241a14cd63f3cc.tar.gz |
updated presentation to specify used languages used for highlight.js
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -382,7 +382,10 @@ function linkify( selector ) { { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } }, { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, - { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, + { src: 'plugin/highlight/highlight.js', async: true, callback: function() { + hljs.configure({languages:['js','html']}); // limit language detection to what's in the presentation + hljs.initHighlightingOnLoad(); + } }, { src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } } ] |