[ci] format

This commit is contained in:
natemoo-re 2023-01-25 23:22:56 +00:00 committed by Matthew Phillips
parent f819edc5f9
commit 25edd88cae
2 changed files with 1 additions and 2 deletions

View file

@ -57,7 +57,7 @@ const highlighter = await getHighlighter({
langs: typeof lang !== 'string' ? [lang] : undefined,
});
const _html = highlighter.codeToHtml(code, {
lang: typeof lang === 'string' ? lang : lang.id
lang: typeof lang === 'string' ? lang : lang.id,
});
const html = repairShikiTheme(_html);
---

View file

@ -25,7 +25,6 @@ async function resolveHighlighter(opts) {
resolvedThemes.push(await themes[opts.theme]());
}
let resolvedLanguages;
if (opts.langs) {
resolvedLanguages = opts.langs;