mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
refactor(export/share): use different URL rewriting mechanism
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user