fix markdown URL logic

This commit is contained in:
MathMan05 2024-10-07 14:03:39 -05:00
parent 63d0a08b29
commit 524039d95b

View file

@ -417,7 +417,7 @@ txt[i + 3] === "p"
){
let build = "http";
let j = i + 4;
const endchars = new Set(["\\", "<", ">", "|", "]", " "]);
const endchars = new Set(["\\", "<", ">", "|", "]", " ","\n"]);
for(; txt[j] !== undefined; j++){
const char = txt[j];
if(endchars.has(char)){