This commit is contained in:
2026-05-23 21:51:00 +02:00
parent 1aaa0493a9
commit 4e10aec872
3 changed files with 6 additions and 3 deletions

View File

@@ -11,7 +11,8 @@
var el = document.getElementById('rules-dynamic-content');
function render() {
if (raw && el && typeof marked !== 'undefined') {
var text = atob(raw.textContent.trim());
var bytes = Uint8Array.from(atob(raw.textContent.trim()), function(c) { return c.charCodeAt(0); });
var text = new TextDecoder('utf-8').decode(bytes);
el.innerHTML = marked.parse(text, { gfm: true, breaks: true });
}
}