mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
fix: code prettify
This commit is contained in:
parent
7d833fe5be
commit
b8a99e75cf
@ -12,6 +12,8 @@
|
|||||||
<link rel="shortcut icon" href="https://imgkr.cn-bj.ufileos.com/f3accc83-b854-4e99-afb5-8a6465e1d84f.png">
|
<link rel="shortcut icon" href="https://imgkr.cn-bj.ufileos.com/f3accc83-b854-4e99-afb5-8a6465e1d84f.png">
|
||||||
<link rel="apple-touch-icon-precomposed"
|
<link rel="apple-touch-icon-precomposed"
|
||||||
href="https://imgkr.cn-bj.ufileos.com/f3accc83-b854-4e99-afb5-8a6465e1d84f.png">
|
href="https://imgkr.cn-bj.ufileos.com/f3accc83-b854-4e99-afb5-8a6465e1d84f.png">
|
||||||
|
<script src="https://cdn.bootcdn.net/ajax/libs/prettify/r224/prettify.min.js"></script>
|
||||||
|
<link href="https://cdn.bootcdn.net/ajax/libs/prettify/r224/prettify.min.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -216,6 +216,7 @@ export default {
|
|||||||
},
|
},
|
||||||
onEditorRefresh() {
|
onEditorRefresh() {
|
||||||
this.editorRefresh();
|
this.editorRefresh();
|
||||||
|
setTimeout(()=> PR.prettyPrint(), 0);
|
||||||
},
|
},
|
||||||
endCopy() {
|
endCopy() {
|
||||||
this.backLight = false;
|
this.backLight = false;
|
||||||
@ -232,6 +233,9 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.leftAndRightScroll();
|
this.leftAndRightScroll();
|
||||||
|
setTimeout(() => {
|
||||||
|
PR.prettyPrint()
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user