diff --git a/public/js/index.js b/public/js/index.js index afc894ca3..90412756f 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -2007,7 +2007,10 @@ $(document).ready(function () { // Highlight JS if (typeof hljs != 'undefined') { - hljs.initHighlightingOnLoad(); + const nodes = [].slice.call(document.querySelectorAll('pre code') || []); + for (let i = 0; i < nodes.length; i++) { + hljs.highlightBlock(nodes[i]); + } } // Dropzone