Skip to content

Commit

Permalink
🐛 Fix: slides hljs highlighting bug
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #218
  • Loading branch information
Molunerfinn committed Jan 29, 2020
1 parent 92623bf commit 9d8ab38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion layout/includes/slide/script.pug
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ script.
{ src: '/js/third-party/reveal/marked.min.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: '/js/third-party/reveal/markdown.min.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
// Syntax highlight for <code> elements
{ src: '/js/third-party/reveal/highlight.min.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: '/js/third-party/reveal/highlight.min.js', async: true, callback: function() {
// issue #218
setTimeout(function () {
hljs.initHighlighting();
}, 0)
} },
// Zoom in and out with Alt+click
{ src: '/js/third-party/reveal/zoom.min.js', async: true },
// Speaker notes
Expand Down

0 comments on commit 9d8ab38

Please sign in to comment.