diff --git a/static/js/kancloud.js b/static/js/kancloud.js index 520d90c2..2229dc2f 100644 --- a/static/js/kancloud.js +++ b/static/js/kancloud.js @@ -70,6 +70,9 @@ function loadDocument($url, $id, $callback) { */ function initHighlighting() { $('pre,pre.ql-syntax').each(function (i, block) { + if($(this).hasClass('prettyprinted')){ + return; + } hljs.highlightBlock(block); }); hljs.initLineNumbersOnLoad();