diff --git a/.changeset/sweet-rocks-count.md b/.changeset/sweet-rocks-count.md new file mode 100644 index 000000000..7f6228934 --- /dev/null +++ b/.changeset/sweet-rocks-count.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix `Code.astro` shiki css class replace logic diff --git a/packages/astro/components/Code.astro b/packages/astro/components/Code.astro index 8bd3476a1..5066b9594 100644 --- a/packages/astro/components/Code.astro +++ b/packages/astro/components/Code.astro @@ -37,7 +37,7 @@ 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('