mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-26 03:21:49 +08:00
优化代码高亮
This commit is contained in:
@@ -300,6 +300,16 @@ function uploadImage($id,$callback) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化代码高亮
|
||||
*/
|
||||
function initHighlighting() {
|
||||
$('pre code,pre.ql-syntax').each(function (i, block) {
|
||||
hljs.highlightBlock(block);
|
||||
});
|
||||
|
||||
hljs.initLineNumbersOnLoad();
|
||||
}
|
||||
$(function () {
|
||||
window.vueApp = new Vue({
|
||||
el : "#attachList",
|
||||
|
||||
Reference in New Issue
Block a user