mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
渲染饼图、思维导图
This commit is contained in:
@@ -70,14 +70,6 @@ function renderPrismMac() {
|
||||
}
|
||||
}, 10)
|
||||
|
||||
// 重新渲染之前检查所有的多余text
|
||||
|
||||
try {
|
||||
Prism.highlightAll()
|
||||
} catch (err) {
|
||||
console.log('代码渲染', err)
|
||||
}
|
||||
|
||||
// 支持 Mermaid
|
||||
const mermaids = document.querySelectorAll('.notion-code .language-mermaid')
|
||||
if (mermaids) {
|
||||
@@ -102,6 +94,14 @@ function renderPrismMac() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 重新渲染之前检查所有的多余text
|
||||
|
||||
try {
|
||||
Prism.highlightAll()
|
||||
} catch (err) {
|
||||
console.log('代码渲染', err)
|
||||
}
|
||||
}
|
||||
|
||||
export default PrismMac
|
||||
|
||||
Reference in New Issue
Block a user