From 003b58342e302284f65428f86323c947f086ab28 Mon Sep 17 00:00:00 2001 From: ckie Date: Sat, 5 Oct 2024 21:46:34 +0300 Subject: [PATCH] oop --- src/lib/Highlight.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Highlight.svelte b/src/lib/Highlight.svelte index 78e1e68..2ed64e6 100644 --- a/src/lib/Highlight.svelte +++ b/src/lib/Highlight.svelte @@ -7,7 +7,7 @@ export let slice = true; let renderedCode; - $: renderedCode = code.replace(/#[^]*?#<\/hidden>/, ""); + $: renderedCode = slice ? code.replace(/#[^]*?#<\/hidden>/, "") : code;;