#334 - Added a user-hidden setting to index excalidraw files

This commit is contained in:
Simon Cambier
2024-01-05 21:26:44 +01:00
parent 2ef38bdf26
commit 763fbb5886
2 changed files with 4 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ async function getAndMapIndexedDocument(
// EXCALIDRAW
// Remove the json code
if (metadata.frontmatter?.['excalidraw-plugin']) {
if (settings.excalidrawIndexing && metadata.frontmatter?.['excalidraw-plugin']) {
const comments =
metadata.sections?.filter(s => s.type === 'comment') ?? []
for (const { start, end } of comments.map(c => c.position)) {