Skip to content

Commit

Permalink
Highlight code with Prism on 'turbolinks:load' [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
p8 authored and georgeclaghorn committed Dec 18, 2019
1 parent c694d3f commit 4c9b22d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guides/assets/javascripts/guides.js
Expand Up @@ -27,6 +27,8 @@
if (window.location.protocol === "file:") Turbolinks.supported = false;

document.addEventListener("turbolinks:load", function() {
Prism.highlightAll();

var guidesMenu = document.getElementById("guidesMenu");
var guides = document.getElementById("guides");

Expand Down

0 comments on commit 4c9b22d

Please sign in to comment.