From 89957097e1e4eca503a15140b61da587b64bfb64 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 10 Mar 2025 16:57:52 +0100 Subject: [PATCH] Remove replacing standard html checkboxes with custom ones This doesn't work currently, we need to look into ways to delegate this. --- src/components/Markdown.svelte | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/components/Markdown.svelte b/src/components/Markdown.svelte index 7588f1f63..998af7dcf 100644 --- a/src/components/Markdown.svelte +++ b/src/components/Markdown.svelte @@ -134,20 +134,6 @@ } } - // Replace standard HTML checkboxes with our custom radicle-icon-small element - for (const i of container.querySelectorAll('input[type="checkbox"]')) { - i.parentElement?.classList.add("task-item"); - - const checkbox = document.createElement("radicle-icon-small"); - const checked = i.getAttribute("checked"); - checkbox.setAttribute( - "name", - checked === null ? "checkbox-unchecked" : "checkbox-checked", - ); - i.insertAdjacentElement("beforebegin", checkbox); - i.remove(); - } - // Replaces code blocks in the background with highlighted code. const prefix = "language-"; const nodes = Array.from(document.body.querySelectorAll("pre code"));