summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/components/Code.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro/components/Code.astro b/packages/astro/components/Code.astro
index e2e22061a..d6514b150 100644
--- a/packages/astro/components/Code.astro
+++ b/packages/astro/components/Code.astro
@@ -45,6 +45,6 @@ function repairShikiTheme(html: string): string {
const highlighter = await shiki.getHighlighter({theme});
const _html = highlighter.codeToHtml(code, lang);
-html = repairShikiTheme(_html);
+const html = repairShikiTheme(_html);
---
{html}