diff --git a/src/lib/Highlight.svelte b/src/lib/Highlight.svelte index 8128cda..f3321c2 100644 --- a/src/lib/Highlight.svelte +++ b/src/lib/Highlight.svelte @@ -8,7 +8,9 @@ export let alt; let renderedCode; - $: renderedCode = slice ? code.replace(/#[^]*?#<\/hidden>/, "") : code; + $: renderedCode = + slice ? code.replace(/#[^]*?#<\/hidden>/, "") + : code.replace(/#(|<\/hidden>)/g,"");

{alt}