From a50c6c2141661e0dd89bf019b7415fe812b72492 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Thu, 5 Sep 2024 12:11:17 -0500 Subject: [PATCH] don't render links in MD box --- .dist/markdown.js | 2 +- webpage/markdown.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dist/markdown.js b/.dist/markdown.js index 6e3fd25..6d0240d 100644 --- a/.dist/markdown.js +++ b/.dist/markdown.js @@ -396,7 +396,7 @@ class MarkDown { continue; } } - if (txt[i] === "h" && txt[i + 1] === "t" && txt[i + 2] === "t" && txt[i + 3] === "p") { + if ((!keep) && txt[i] === "h" && txt[i + 1] === "t" && txt[i + 2] === "t" && txt[i + 3] === "p") { let build = "http"; let j = i + 4; const endchars = new Set(["\\", "<", ">", "|", "]", " "]); diff --git a/webpage/markdown.ts b/webpage/markdown.ts index 5644045..5d97419 100644 --- a/webpage/markdown.ts +++ b/webpage/markdown.ts @@ -388,7 +388,7 @@ class MarkDown{ continue; } } - if(txt[i]==="h" && txt[i + 1]==="t" && txt[i + 2]==="t" && txt[i + 3]==="p"){ + if((!keep)&&txt[i]==="h" && txt[i + 1]==="t" && txt[i + 2]==="t" && txt[i + 3]==="p"){ let build="http"; let j = i+4; const endchars=new Set(["\\", "<", ">", "|", "]"," "]);