diff options
author | 2021-10-19 13:53:26 -0500 | |
---|---|---|
committer | 2021-10-19 12:53:26 -0600 | |
commit | c41d416752b6baff4af5cbf445ad288f2bee7fa0 (patch) | |
tree | 27e8471e91b3b5f408bd7ac90e7ac3eb55064b6f | |
parent | 7ed330c792dd5c1011ed5b7c66c9f96573b19bd3 (diff) | |
download | astro-c41d416752b6baff4af5cbf445ad288f2bee7fa0.tar.gz astro-c41d416752b6baff4af5cbf445ad288f2bee7fa0.tar.zst astro-c41d416752b6baff4af5cbf445ad288f2bee7fa0.zip |
Add `const` so that variable is declared rather than pulled out of the ether (#1591)
-rw-r--r-- | packages/astro/components/Code.astro | 2 |
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} |