appendcurrent to links bug fix
This commit is contained in:
parent
a50c6c2141
commit
6642cd8980
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue