pull/560/merge
Piet Schijven 4 months ago committed by GitHub
commit 87848cf7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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