From 9087dcaf7b00d92425d16c2e6e8ce64991446ef7 Mon Sep 17 00:00:00 2001 From: Karn Date: Sat, 30 Aug 2025 17:49:13 +0100 Subject: [PATCH] When appending local version of remote image to frontmatter, enclose in quotes to ensure valid formatting --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index c9853af..4d18e59 100644 --- a/src/main.ts +++ b/src/main.ts @@ -359,7 +359,7 @@ export default class MediaDbPlugin extends Plugin { } // Update model to use local image path - mediaTypeModel.image = `[[${imagePath}]]`; + mediaTypeModel.image = `"[[${imagePath}]]"`; return true; } catch (e) { console.warn('MDB | Failed to download image:', e);