From 663eb28de2e43e8153cad2a8ce5a1390e76728e5 Mon Sep 17 00:00:00 2001 From: xiangshenb Date: Fri, 5 Jan 2024 10:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpython=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=BA=93=E5=BC=82=E6=AD=A5=E8=AF=B7=E6=B1=82=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E6=97=B6=E5=80=99=E9=AB=98=E4=BA=AE?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=20(#920)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复代码库读取缓存数据不高亮的问题 * 代码块重复点击高亮样式问题修复 --------- Co-authored-by: xiangshen --- static/js/kancloud.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);