From e99989c26823d26b12b744b009fee2f62521b9cb Mon Sep 17 00:00:00 2001 From: dylan Date: Thu, 25 Dec 2025 17:27:15 +0000 Subject: [PATCH] updated htmlLinkRegex to allow for attributes before the href in anchor tags --- utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.js b/utils.js index 0f0e746..fe475fa 100644 --- a/utils.js +++ b/utils.js @@ -11,7 +11,7 @@ export function markdownLinkRegex(url) { export function htmlLinkRegex(url) { return new RegExp( - `().*?(<\\/a>)`, + `(]*href="https:\\/\\/${url.replaceAll('.', '\\.')}[^"]*"[^>]*>).*?(<\\/a>)`, 'i', ) }