[ci] format
This commit is contained in:
parent
f819edc5f9
commit
25edd88cae
2 changed files with 1 additions and 2 deletions
|
@ -57,7 +57,7 @@ const highlighter = await getHighlighter({
|
||||||
langs: typeof lang !== 'string' ? [lang] : undefined,
|
langs: typeof lang !== 'string' ? [lang] : undefined,
|
||||||
});
|
});
|
||||||
const _html = highlighter.codeToHtml(code, {
|
const _html = highlighter.codeToHtml(code, {
|
||||||
lang: typeof lang === 'string' ? lang : lang.id
|
lang: typeof lang === 'string' ? lang : lang.id,
|
||||||
});
|
});
|
||||||
const html = repairShikiTheme(_html);
|
const html = repairShikiTheme(_html);
|
||||||
---
|
---
|
||||||
|
|
|
@ -25,7 +25,6 @@ async function resolveHighlighter(opts) {
|
||||||
resolvedThemes.push(await themes[opts.theme]());
|
resolvedThemes.push(await themes[opts.theme]());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let resolvedLanguages;
|
let resolvedLanguages;
|
||||||
if (opts.langs) {
|
if (opts.langs) {
|
||||||
resolvedLanguages = opts.langs;
|
resolvedLanguages = opts.langs;
|
||||||
|
|
Loading…
Reference in a new issue