fix mainDocument

This commit is contained in:
zsviczian committed 2026-07-01 17:45:04 +02:00
1 parent 725ee9f764
commit 5946bdb481
24 files changed
+54 -38

No files matched your search

+1 -1
View File
@@ -15,7 +15,6 @@ import {
THEME_FILTER,
FRONTMATTER_KEYS,
getCSSFontDefinition,
mainDocument,
} from "../constants/constants";
import { createSVG } from "src/utils/excalidrawAutomateUtils";
import type { EquationItem } from "./ExcalidrawData";
@@ -77,6 +76,7 @@ import {
} from "src/utils/typechecks";
import { getSafeFrontmatter, strictArrayBuffer } from "src/utils/obsidianUtils";
declare const mainDocument:Document;
//An ugly workaround for the following situation.
//File A is a markdown file that has an embedded Excalidraw file B
//Later file A is embedded into file B as a Markdown embed