Skip to content

Commit

Permalink
修复python代码库异步请求获取数据的时候高亮显示问题 (#920)
Browse files Browse the repository at this point in the history
* 修复代码库读取缓存数据不高亮的问题

* 代码块重复点击高亮样式问题修复

---------

Co-authored-by: xiangshen <[email protected]>
  • Loading branch information
xiangshenb and xiangshen authored Jan 5, 2024
1 parent d1b2476 commit 663eb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/kancloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 663eb28

Please sign in to comment.