1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

Desktop: Fixes #3510: Note links would be broken after saving a note in Rich Text editor

This commit is contained in:
Laurent Cozic
2020-07-23 19:38:42 +00:00
parent 1cd86fd3ea
commit 8f8d11c9b3
3 changed files with 12 additions and 3 deletions

View File

@ -187,6 +187,9 @@ class Note extends BaseItem {
return `:/${id}`;
});
}
// Handles joplin://af0edffa4a60496bba1b0ba06b8fb39a
body = body.replace(/\(joplin:\/\/([a-zA-Z0-9]{32})\)/g, '(:/$1)');
}
this.logger().debug('replaceResourceExternalToInternalLinks result', body);