remove gitalk valine mermaid

This commit is contained in:
tangly1024
2023-06-04 15:41:04 +08:00
parent cd1b38a8ac
commit 9246c8d7f8
9 changed files with 110 additions and 64 deletions

View File

@@ -64,8 +64,11 @@ const renderMermaid = async() => {
}
}
if (needLoad) {
const asyncMermaid = await import('mermaid')
asyncMermaid.default.contentLoaded()
// const asyncMermaid = await import('mermaid')
const url = await loadExternalResource(BLOG.MERMAID_CDN, 'js')
const mermaid = window.mermaid
console.log('mermaid加载成功', url, mermaid)
mermaid.contentLoaded()
}
}
}