From 7fc3f406dde04e05a3efd95b721848de4e049644 Mon Sep 17 00:00:00 2001 From: ckie Date: Wed, 23 Oct 2024 21:48:43 +0300 Subject: [PATCH] fix(Highlight): remove tags in code examples --- src/lib/Highlight.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}