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:
commit
5961e2dffa
@ -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…
x
Reference in New Issue
Block a user