mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
aedf23f858
commit
98d35de877
2 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
---
|
||||
|
|
|
@ -25,7 +25,6 @@ async function resolveHighlighter(opts) {
|
|||
resolvedThemes.push(await themes[opts.theme]());
|
||||
}
|
||||
|
||||
|
||||
let resolvedLanguages;
|
||||
if (opts.langs) {
|
||||
resolvedLanguages = opts.langs;
|
||||
|
|
Loading…
Reference in a new issue