Add const
so that variable is declared rather than pulled out of the ether (#1591)
This commit is contained in:
parent
7ed330c792
commit
c41d416752
1 changed files with 1 additions and 1 deletions
|
@ -45,6 +45,6 @@ function repairShikiTheme(html: string): string {
|
||||||
|
|
||||||
const highlighter = await shiki.getHighlighter({theme});
|
const highlighter = await shiki.getHighlighter({theme});
|
||||||
const _html = highlighter.codeToHtml(code, lang);
|
const _html = highlighter.codeToHtml(code, lang);
|
||||||
html = repairShikiTheme(_html);
|
const html = repairShikiTheme(_html);
|
||||||
---
|
---
|
||||||
{html}
|
{html}
|
||||||
|
|
Loading…
Reference in a new issue