mirror of
https://github.com/outline/outline.git
synced 2026-05-02 15:39:36 -05:00
fix: Markdown import with relative path image not imported correctly
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user