From 105805fb69b295a3586fa1d2259830b4d365b768 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Thu, 5 Sep 2024 16:32:57 -0600 Subject: [PATCH] remove # escaping to stop breaking html entities --- src/util/html.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/html.js b/src/util/html.js index 0c5978a..85bb5ec 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -32,7 +32,6 @@ function parseHtmlEntities(str) { function htmlToMarkdown(str, images = true, embed = true) { str = str.replaceAll("\\", "\\\\"); - str = str.replaceAll("#", "\\#"); str = str.replace(/]+)?>(.|\n)*?<\/style>/gi, ""); str = str.replace(/]+)?href="([^"]+?)"(\s+[^>]+)?>(.+?)<\/a>/gi, (_, __, url, ___, text) => { url = url.replace(/^\/\//, "https://").replace("\\#", "#");