Skip to content

Commit 9087dca

Browse files
committed
When appending local version of remote image to frontmatter, enclose in quotes to ensure valid formatting
1 parent 9fa7348 commit 9087dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export default class MediaDbPlugin extends Plugin {
359359
}
360360

361361
// Update model to use local image path
362-
mediaTypeModel.image = `[[${imagePath}]]`;
362+
mediaTypeModel.image = `"[[${imagePath}]]"`;
363363
return true;
364364
} catch (e) {
365365
console.warn('MDB | Failed to download image:', e);

0 commit comments

Comments
 (0)