Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 663eb28

Browse files
xiangshenbxiangshen
andauthored
修复python代码库异步请求获取数据的时候高亮显示问题 (#920)
* 修复代码库读取缓存数据不高亮的问题 * 代码块重复点击高亮样式问题修复 --------- Co-authored-by: xiangshen <[email protected]>
1 parent d1b2476 commit 663eb28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/js/kancloud.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function loadDocument($url, $id, $callback) {
221221
function initHighlighting() {
222222
try {
223223
$('pre,pre.ql-syntax').each(function (i, block) {
224-
if ($(this).hasClass('prettyprinted')) {
224+
if ($(this).hasClass('prettyprinted') || $(this).hasClass('hljs')) {
225225
return;
226226
}
227227
hljs.highlightBlock(block);

0 commit comments

Comments
 (0)