#styles gets nested into the body tag when saving

4 messages · Page 1 of 1 (latest)

abstract hatch
#

When I put one astro component within the head section of a Astro layout (for example ViewTransitions), it then nests the styles under the body tag when saving. Why? I'm using vscode with the Astro extension

pure terrace
#

I have had this happen to me a few times, I think this happens when something is not formatted correctly like an element in your html that doesn't have a / in the closing tag: <div><div>

abstract hatch
#

Oh, I will take a look. The weird thing is that it happens as early as I add a Astro component in the head section. It's weird that I forgot to add the self closing slash.

abstract hatch
#

No, it is definitely not a unclosed tag