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.cjs
CHANGED
|
@@ -8151,17 +8151,7 @@ async function render_mermaidText(mermaidText, div) {
|
|
|
8151
8151
|
return div;
|
|
8152
8152
|
}
|
|
8153
8153
|
async function init_mermaid() {
|
|
8154
|
-
if (mermaid != null) return;
|
|
8155
8154
|
if (ABCSetting.env !== "obsidian" || true) return;
|
|
8156
|
-
const { default: mermaid_ } = await import("mermaid");
|
|
8157
|
-
const { default: mindmap } = await import("@mermaid-js/mermaid-mindmap");
|
|
8158
|
-
mermaid = mermaid_;
|
|
8159
|
-
mermaid.registerExternalDiagrams([mindmap]);
|
|
8160
|
-
const isDarkTheme = document.body.classList.contains("theme-dark");
|
|
8161
|
-
const theme = isDarkTheme ? "dark" : "light";
|
|
8162
|
-
mermaid.initialize({
|
|
8163
|
-
theme
|
|
8164
|
-
});
|
|
8165
8155
|
}
|
|
8166
8156
|
function abConvertEvent(d, isCycle = false) {
|
|
8167
8157
|
if (d.querySelector(".ab-super-width")) {
|