Feat: update mermaid to 11.3.0 to support more diagrams

This commit is contained in:
Cell
2024-10-25 14:12:40 +08:00
parent c08671dedf
commit 64f954ccf7
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -601,11 +601,11 @@ class FixIt {
}
initMermaid() {
if (!window.mermaid?.initialize) {
if (!this.config.mermaid) {
return;
}
const _initializeAndRun = () => {
const themes = window.mermaid.themes ?? ['default', 'dark'];
const themes = this.config.mermaid.themes ?? ['default', 'dark'];
window.mermaid.initialize({
securityLevel: 'loose',
startOnLoad: false,