From 8346c9637a694b97067ee6a7bf28d26869905956 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Thu, 20 Nov 2025 15:37:26 +0530 Subject: [PATCH] chore: cleanup --- server/src/markdownify/markdown.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/src/markdownify/markdown.ts b/server/src/markdownify/markdown.ts index e660679d..92551b51 100644 --- a/server/src/markdownify/markdown.ts +++ b/server/src/markdownify/markdown.ts @@ -98,14 +98,10 @@ function cleanUrl(u: string): string { } } -// CODE 1: attribute cleaner function cleanAttribute(attr: string) { return attr ? attr.replace(/(\n+\s*)+/g, "\n") : ""; } -// --------------------------------------------------------- -// CODE 1: Full tidyHtml cleaning logic (ported verbatim) -// --------------------------------------------------------- function tidyHtml(html: string): string { const cheerio = require("cheerio"); const $ = cheerio.load(html);