refactor(export/share): use different URL rewriting mechanism

This commit is contained in:
Elian Doran
2025-06-23 19:25:28 +03:00
parent 8523050ab2
commit 77e4c3d0ec
3 changed files with 6 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ export default class ShareThemeExportProvider extends ZipExportProvider {
if (note) {
content = renderNoteForExport(note, branch, basePath);
content = content.replace(/href="[^"]*\.\/([a-zA-Z0-9_\/]{12})[^"]*"/g, "href=\"#root/$1\"");
content = this.rewriteFn(content, noteMeta);
}