Skip to content

Commit

Permalink
Add const so that variable is declared rather than pulled out of th…
Browse files Browse the repository at this point in the history
…e ether (withastro#1591)
  • Loading branch information
jasikpark authored Oct 19, 2021
1 parent 9ca7596 commit 56aa88a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Code.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 56aa88a

Please sign in to comment.