#[solved] Astro highlight not working in mdx files (works on md)

8 messages · Page 1 of 1 (latest)

neat moon
sharp narwhal
#

Your MarkdownPostLayout contains invalid HTML. There are head, style and script elements outside of your BaseLayout component

#

Move all of them inside, maybe use a named slot for additional head contents

#

(I don‘t know for sure if this is related to your issue, but I‘ve seen countless strange bugs arise from invalid markup)

#

And does anything change if you remove the markdown property & JSON import temporarily from the Astro config?

neat moon
#

it seems like an update fixed it
issue was i accidentally partially updated through the depend bot
rookie mistake but hard to detect

#

whats weird was that md was working and mdx was not it was probably due to breaking changes in mdx (i saw the warning this time )

#

[solved] Astro highlight not working in mdx files (works on md)