fix markdown URL logic
This commit is contained in:
parent
63d0a08b29
commit
524039d95b
1 changed files with 5 additions and 5 deletions
|
@ -410,14 +410,14 @@ txt[j + 1] === undefined)
|
||||||
}
|
}
|
||||||
if(
|
if(
|
||||||
!keep &&
|
!keep &&
|
||||||
txt[i] === "h" &&
|
txt[i] === "h" &&
|
||||||
txt[i + 1] === "t" &&
|
txt[i + 1] === "t" &&
|
||||||
txt[i + 2] === "t" &&
|
txt[i + 2] === "t" &&
|
||||||
txt[i + 3] === "p"
|
txt[i + 3] === "p"
|
||||||
){
|
){
|
||||||
let build = "http";
|
let build = "http";
|
||||||
let j = i + 4;
|
let j = i + 4;
|
||||||
const endchars = new Set(["\\", "<", ">", "|", "]", " "]);
|
const endchars = new Set(["\\", "<", ">", "|", "]", " ","\n"]);
|
||||||
for(; txt[j] !== undefined; j++){
|
for(; txt[j] !== undefined; j++){
|
||||||
const char = txt[j];
|
const char = txt[j];
|
||||||
if(endchars.has(char)){
|
if(endchars.has(char)){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue