1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Desktop: WYSIWYG: Handle internal note links

This commit is contained in:
Laurent Cozic
2020-04-10 17:59:51 +00:00
parent 5be98a46e3
commit ae4cecc621
4 changed files with 90 additions and 52 deletions

View File

@ -782,6 +782,12 @@ class BaseItem extends BaseModel {
output.push(`(:/${item.id})`);
return output.join('');
}
static isMarkdownTag(md) {
if (!md) return false;
return !!md.match(/^\[.*?\]\(:\/[0-9a-zA-Z]{32}\)$/);
}
}
BaseItem.encryptionService_ = null;