Add const so that variable is declared rather than pulled out of the ether (#1591)

This commit is contained in:
Caleb Jasik 2021-10-19 13:53:26 -05:00 committed by GitHub
parent 7ed330c792
commit c41d416752
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}