When appending local version of remote image to frontmatter, enclose in quotes to ensure valid formatting

This commit is contained in:
Karn 2025-08-30 17:49:13 +01:00
parent 9fa7348ae9
commit 9087dcaf7b

View file

@ -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);