markdown-it-any-block 3.2.10-beta4 → 3.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mdit-any-block.js
CHANGED
|
@@ -8127,17 +8127,7 @@ async function render_mermaidText(mermaidText, div) {
|
|
|
8127
8127
|
return div;
|
|
8128
8128
|
}
|
|
8129
8129
|
async function init_mermaid() {
|
|
8130
|
-
if (mermaid != null) return;
|
|
8131
8130
|
if (ABCSetting.env !== "obsidian" || true) return;
|
|
8132
|
-
const { default: mermaid_ } = await import("mermaid");
|
|
8133
|
-
const { default: mindmap } = await import("@mermaid-js/mermaid-mindmap");
|
|
8134
|
-
mermaid = mermaid_;
|
|
8135
|
-
mermaid.registerExternalDiagrams([mindmap]);
|
|
8136
|
-
const isDarkTheme = document.body.classList.contains("theme-dark");
|
|
8137
|
-
const theme = isDarkTheme ? "dark" : "light";
|
|
8138
|
-
mermaid.initialize({
|
|
8139
|
-
theme
|
|
8140
|
-
});
|
|
8141
8131
|
}
|
|
8142
8132
|
function abConvertEvent(d, isCycle = false) {
|
|
8143
8133
|
if (d.querySelector(".ab-super-width")) {
|