From 38ef4d1c2fbff37c0b37b7f2ef243e71cde2b944 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 29 Mar 2025 10:05:21 -0600 Subject: [PATCH] guh --- src/util/html.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/html.js b/src/util/html.js index 092a0f0..be61121 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -69,6 +69,7 @@ function htmlToMarkdown(str, images = true, embed = true) { .replace(/<\/li>/gi, "\n") .replaceAll("\n\n", "\n"); }); + str = str.replace(/<\/?span(\s*[^>]+)?>/gi, ""); str = str.replace(/<\/?code(\s*[^>]+)?>/gi, "`"); str = str.replace(/<\/?em(\s*[^>]+)?>/gi, "_"); str = str.replace(/<\/?i(\s*[^>]+)?>/gi, "_");