Fixed the toggling behaviour in toggleLinks.

pull/560/head
Piet Schijven 8 months ago
parent d9ab397b88
commit 108a44f82f

@ -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');
}

Loading…
Cancel
Save