1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-09 17:00:27 +00:00

Revert "fix: link end position should add ^id 's length"

This reverts commit 9c2c6d724e.
This commit is contained in:
lin onetwo 2024-06-09 23:05:37 +08:00
parent 9c2c6d724e
commit 7e9cadf6b0

View File

@ -40,7 +40,7 @@ exports.parse = function() {
textEndPos = this.matchRegExp.lastIndex - 2;
}
var linkStart = this.match[2] ? (start + this.match[1].length + 1) : start;
var linkEnd = anchor ? (linkStart + link.length + 1 + anchor.length) : (linkStart + link.length);
var linkEnd = linkStart + link.length;
if($tw.utils.isLinkExternal(link)) {
// add back the part after `^` to the ext link, if it happen to has one.
if(anchor) {