diff --git a/packages/astro/components/Code.astro b/packages/astro/components/Code.astro index 339aaa9af5e6..e64c55fb0d65 100644 --- a/packages/astro/components/Code.astro +++ b/packages/astro/components/Code.astro @@ -35,8 +35,8 @@ const { code, lang = 'plaintext', theme = 'github-dark', wrap = false } = Astro. /** Replace the shiki class name with a custom astro class name. */ function repairShikiTheme(html: string): string { - // Replace "shiki" class naming with "astro". - html = html.replace('
{ let html = highlighter.codeToHtml(node.value, { lang: node.lang ?? 'plaintext' }); - // Replace "shiki" class naming with "astro". - html = html.replace('