diff --git a/public/js/index.js b/public/js/index.js index 52ebe2ecb1..23dcd72196 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1974,7 +1974,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