diff --git a/packages/astro/components/Code.astro b/packages/astro/components/Code.astro index 43cc847bb8fa..f0cb26326516 100644 --- a/packages/astro/components/Code.astro +++ b/packages/astro/components/Code.astro @@ -87,7 +87,7 @@ const highlighter = await getCachedHighlighter({ wrap, }); -const html = highlighter.highlight(code, typeof lang === 'string' ? lang : lang.name, { +const html = await highlighter.highlight(code, typeof lang === 'string' ? lang : lang.name, { inline, attributes: rest as any, });