mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 10:48:00 +08:00
优化代码高亮
This commit is contained in:
@@ -65,8 +65,11 @@ function loadDocument($url, $id, $callback) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化代码高亮
|
||||
*/
|
||||
function initHighlighting() {
|
||||
$('pre code').each(function (i, block) {
|
||||
$('pre code,pre.ql-syntax').each(function (i, block) {
|
||||
hljs.highlightBlock(block);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user