fix: allow styled mark tags

This commit is contained in:
Oliver Booth 2023-08-16 13:56:13 +01:00
parent 09f3535d77
commit 1e1f67b9b4
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class UI {
let content = block.innerHTML;
// but ugly fucking hack. I hate this
content = content.replaceAll("&lt;mark&gt;", "<mark>");
content = content.replaceAll(/&lt;mark(.*?)&gt;/g, "<mark$1>");
content = content.replaceAll("&lt;/mark&gt;", "</mark>");
block.innerHTML = content;
});