From 98e93a19d597dd5878586fff4edd5a32ddb603bf Mon Sep 17 00:00:00 2001 From: Minho Date: Wed, 28 Mar 2018 16:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=B8=A4=E7=A7=8D=E9=AB=98?= =?UTF-8?q?=E4=BA=AE=E5=B7=A5=E5=85=B7=E9=87=8D=E5=A4=8D=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/kancloud.js | 3 +++ 1 file changed, 3 insertions(+) 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();