From c41d416752b6baff4af5cbf445ad288f2bee7fa0 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Tue, 19 Oct 2021 13:53:26 -0500 Subject: [PATCH] Add `const` so that variable is declared rather than pulled out of the ether (#1591) --- packages/astro/components/Code.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}