From 14cbcede699d97c006c1103f9102da05e9e204a4 Mon Sep 17 00:00:00 2001 From: dylan Date: Thu, 25 Dec 2025 17:23:40 +0000 Subject: [PATCH] added htmlLinkRegex function to utils.js --- utils.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils.js b/utils.js index b18c6dd..0f0e746 100644 --- a/utils.js +++ b/utils.js @@ -9,6 +9,13 @@ export function markdownLinkRegex(url) { ) } +export function htmlLinkRegex(url) { + return new RegExp( + `().*?(<\\/a>)`, + 'i', + ) +} + export function markdownCharEscape(text) { return text .replaceAll('`', '\\`')