0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

[ci] format

This commit is contained in:
natemoo-re 2023-01-25 23:22:56 +00:00 committed by fredkbot
parent aedf23f858
commit 98d35de877
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;