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;;