diff options
author | 2023-01-25 23:22:56 +0000 | |
---|---|---|
committer | 2023-01-25 23:22:56 +0000 | |
commit | 98d35de8777149a55053eda89b7a9d102fde9bec (patch) | |
tree | 9247bbf1af3ea4bf5e089f9743f487115cc83999 | |
parent | aedf23f8582e32a6b94b81ddba9b323831f2b22a (diff) | |
download | astro-98d35de8777149a55053eda89b7a9d102fde9bec.tar.gz astro-98d35de8777149a55053eda89b7a9d102fde9bec.tar.zst astro-98d35de8777149a55053eda89b7a9d102fde9bec.zip |
[ci] format
-rw-r--r-- | packages/astro/components/Code.astro | 2 | ||||
-rw-r--r-- | packages/astro/components/Shiki.js | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/packages/astro/components/Code.astro b/packages/astro/components/Code.astro index 7996e1b53..0c5f946af 100644 --- a/packages/astro/components/Code.astro +++ b/packages/astro/components/Code.astro @@ -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); --- diff --git a/packages/astro/components/Shiki.js b/packages/astro/components/Shiki.js index 8e32f5f74..bc94e2dce 100644 --- a/packages/astro/components/Shiki.js +++ b/packages/astro/components/Shiki.js @@ -25,7 +25,6 @@ async function resolveHighlighter(opts) { resolvedThemes.push(await themes[opts.theme]()); } - let resolvedLanguages; if (opts.langs) { resolvedLanguages = opts.langs; |