This commit is contained in:
zsviczian
2024-04-06 13:32:56 +02:00
parent 1c899746fd
commit 0017ed7c92
10 changed files with 65 additions and 39 deletions

View File

@@ -86,7 +86,7 @@ export class UniversalInsertFileModal extends Modal {
const isPDF = file && file.extension === "pdf";
const isExcalidraw = file && ea.isExcalidrawFile(file);
const sections = file && file.extension === "md"
const sections = (file && file.extension === "md")
? (await this.plugin.app.metadataCache.blockCache
.getForFile({ isCancelled: () => false },file))
.blocks.filter((b: any) => b.display && b.node?.type === "heading")