From cf615e1e81ce57f8a0fe27e93428ad19281ea165 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Thu, 10 Aug 2023 22:48:32 +0100 Subject: [PATCH] fix: fix already-formatted no really, I hate this. --- src/ts/UI.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ts/UI.ts b/src/ts/UI.ts index 58130a5..7f03e34 100644 --- a/src/ts/UI.ts +++ b/src/ts/UI.ts @@ -193,6 +193,11 @@ class UI { element = element || document.body; element.querySelectorAll("pre code").forEach((block) => { let content = block.innerHTML; + + // but ugly fucking hack. I hate this + content = content.replaceAll('<mark>', ""); + content = content.replaceAll('</mark>', ""); + content = content.replaceAll("<mark>", ""); content = content.replaceAll("</mark>", ""); block.innerHTML = content;