appendcurrent to links bug fix

This commit is contained in:
MathMan05 2024-09-05 12:23:35 -05:00
parent a50c6c2141
commit 6642cd8980
2 changed files with 4 additions and 2 deletions

View file

@ -409,12 +409,13 @@ class MarkDown {
}
console.log("checking:" + build);
if (URL.canParse(build)) {
appendcurrent();
const a = document.createElement("a");
//a.href=build;
MarkDown.safeLink(a, build);
a.textContent = build;
a.target = "_blank";
i = j;
i = j - 1;
span.appendChild(a);
continue;
}