From 1e1f67b9b469aa80159696c5b348090fa8b84d3c Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 16 Aug 2023 13:56:13 +0100 Subject: [PATCH] fix: allow styled mark tags --- src/ts/UI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/UI.ts b/src/ts/UI.ts index 87e36bd..36f14e9 100644 --- a/src/ts/UI.ts +++ b/src/ts/UI.ts @@ -218,7 +218,7 @@ class UI { let content = block.innerHTML; // but ugly fucking hack. I hate this - content = content.replaceAll("<mark>", ""); + content = content.replaceAll(/<mark(.*?)>/g, ""); content = content.replaceAll("</mark>", ""); block.innerHTML = content; });