mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-08-09 03:58:51 +08:00
update
This commit is contained in:
+5
-1
@@ -5,11 +5,15 @@
|
||||
if (syntax_highlighter === 'prismjs' || enable) && !preprocess
|
||||
script.
|
||||
(() => {
|
||||
const $article = document.getElementById('article-container')
|
||||
if (!$article || $article.querySelector('.hbe-container')) return
|
||||
|
||||
window.Prism = window.Prism || {}
|
||||
window.Prism.manual = true
|
||||
|
||||
const highlightAll = () => {
|
||||
window.Prism.highlightAll()
|
||||
// window.Prism.highlightAll()
|
||||
window.Prism.highlightAllUnder($article, true)
|
||||
}
|
||||
|
||||
window.addEventListener('load', highlightAll)
|
||||
|
||||
Reference in New Issue
Block a user