fix: Add resilience for absolute attachment paths in Markdown importer, closes #7512

This commit is contained in:
Tom Moor
2024-09-21 14:34:28 -04:00
parent 34f951c511
commit 2fd18f7fdb
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -171,7 +171,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
);
}
Binary file not shown.