diff --git a/src/util/html.js b/src/util/html.js index d65e575..782b107 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -58,7 +58,10 @@ function whenYouWalking(tree, images = true, embed = true) { if (link == null || !link.startsWith("http")) { str += content; - } else if (content == link || link.replace(/^https?:\/\//, "") == content) { + } else if ( + content.replaceAll("\\", "") == link || + link.replace(/^https?:\/\//, "") == content.replaceAll("\\", "") + ) { str += embed ? link : `<${link}>`; } else { str += `[${content.replaceAll("\\", "")}](${embed ? "" : "<"}${link}${embed ? "" : ">"}${