fix: Markdown import with relative path image not imported correctly

This commit is contained in:
Tom Moor
2025-02-18 22:38:20 -05:00
parent 2116041cd5
commit a05c965be2
+1 -1
View File
@@ -176,7 +176,7 @@ export default class ImportMarkdownZipTask extends ImportTask {
document.text = document.text
.replace(new RegExp(escapeRegExp(encodedPath), "g"), reference)
.replace(
new RegExp(`\.?/?${escapeRegExp(normalizedAttachmentPath)}`, "g"),
new RegExp(`\\\.?/?${escapeRegExp(normalizedAttachmentPath)}`, "g"),
reference
);
}