aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorJ.D. Fitz.Gerald <jd@jdfitzgerald.net>2014-02-28 16:23:05 +0000
committerJ.D. Fitz.Gerald <jd@jdfitzgerald.net>2014-02-28 16:23:05 +0000
commit7d25ef8aaf0ad8739cdf22a57c241a14cd63f3cc (patch)
tree0b5cac9e4606f41a5b325dad7c487c346e1408a3 /index.html
parentd939c4790e25b1a444c416327d568ea9013396e0 (diff)
downloadperl-software-in-gnu-guix-7d25ef8aaf0ad8739cdf22a57c241a14cd63f3cc.tar
perl-software-in-gnu-guix-7d25ef8aaf0ad8739cdf22a57c241a14cd63f3cc.tar.gz
updated presentation to specify used languages used for highlight.js
Diffstat (limited to 'index.html')
-rw-r--r--index.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.html b/index.html
index 2e25a65..5ae53bf 100644
--- a/index.html
+++ b/index.html
@@ -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; } }
]