From 8fe07f3cae80f93862d18d25800a95d8f45b2fcc Mon Sep 17 00:00:00 2001 From: Jack Platten Date: Tue, 26 May 2026 06:29:38 -0700 Subject: [PATCH] Fix biome lint issue with html comment detection --- packages/cli/src/lib/markdown.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/cli/src/lib/markdown.ts b/packages/cli/src/lib/markdown.ts index dd4d83b..7536f9b 100644 --- a/packages/cli/src/lib/markdown.ts +++ b/packages/cli/src/lib/markdown.ts @@ -390,9 +390,10 @@ export function stripMarkdownForText(markdown: string): string { .replace(/`{3}[\s\S]*?`{3}/g, "") // Remove code blocks .replace(/`([^`]+)`/g, "$1") // Remove inline code formatting .replace(/\n{3,}/g, "\n\n") // Normalize multiple newlines - .replace(/(~{1,2})([^~]+?)\1/g, "$2") // Remove strikethrough for ~text~ and ~~text~~ - .replace(//g, "") // Remove any html comments - .replace(/^\s*\[\^[^\]]+\]:[^\r\n]*(?:\r?\n[ \t]+[^\r\n]*)*/gm, "") // Remove footnote definitions - .replace(/\[\^\S+\]/g, "") // Remove footnote references (we do after definitions so that those can be matched first) - .trim(); + .replace(/(~{1,2})([^~]+?)\1/g, "$2") // Remove strikethrough for ~text~ and ~~text~~ + .replace(//g, "") // Remove any html comments + .replace(/^\s*\[\^[^\]]+\]:[^\r\n]*(?:\r?\n[ \t]+[^\r\n]*)*/gm, "") // Remove footnote definitions + .replace(/\[\^\S+\]/g, "") // Remove footnote references (we do after definitions so that those can be matched first) + .trim() + ); } -- 2.51.2