2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-06-27 13:11:01 -06:00

Merge 108a44f82f5256e219538986c12a5f6c4d2f18b5 into 2996b67ec95ec69000ee03ccaee4fcca26cfc701

This commit is contained in:
Piet Schijven 2025-05-05 06:30:03 +00:00 committed by GitHub
commit 5961e2dffa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1275,7 +1275,7 @@ function _toggleLink(editor, type, startEnd, url) {
var end = text.slice(startPoint.ch);
if (type == 'link') {
start = start.replace(/(.*)[^!]\[/, '$1');
start = start.replace(/(.*[^!]*)\[/, '$1');
} else if (type == 'image') {
start = start.replace(/(.*)!\[$/, '$1');
}