diff --git a/static/js/kancloud.js b/static/js/kancloud.js index 102c1464..e7d49802 100644 --- a/static/js/kancloud.js +++ b/static/js/kancloud.js @@ -221,7 +221,7 @@ function loadDocument($url, $id, $callback) { function initHighlighting() { try { $('pre,pre.ql-syntax').each(function (i, block) { - if ($(this).hasClass('prettyprinted')) { + if ($(this).hasClass('prettyprinted') || $(this).hasClass('hljs')) { return; } hljs.highlightBlock(block);