mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 10:52:34 +08:00
修复python代码库异步请求获取数据的时候高亮显示问题 (#920)
* 修复代码库读取缓存数据不高亮的问题 * 代码块重复点击高亮样式问题修复 --------- Co-authored-by: xiangshen <xiangshen@gw.com.cn>
This commit is contained in:
parent
d1b2476092
commit
663eb28de2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user