diff --git a/.changeset/warm-news-fly.md b/.changeset/warm-news-fly.md new file mode 100644 index 0000000000..389a39049b --- /dev/null +++ b/.changeset/warm-news-fly.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Makes the Debug component's styles be inlined diff --git a/packages/astro/components/Code.astro b/packages/astro/components/Code.astro index e829f87beb..a2052c8161 100644 --- a/packages/astro/components/Code.astro +++ b/packages/astro/components/Code.astro @@ -36,8 +36,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" and add "is:raw". - html = html.replace('
--Debug "{key}"
++-+Debug "{key}"