Closed Marocco2 closed 1 year ago
Thanks for the report. I believe DEFAULT_REHYPE_PLUGINS
was removed in Astro v2, so we’ll need to adapt astro-embed
for that. Should be simple as v2 removed the unintuitive behaviour of v1 where setting any plugin disabled the defaults, so we can drop support for Astro v1 and remove usage of DEFAULT_REHYPE_PLUGINS
entirely.
@Marocco2 One side comment — I noticed you have legacy.astroFlavoredMarkdown: true
in your config, but be aware that that option was removed from Astro in v2 too. So if you’re hoping to use components in .md
that won’t work. You’d need to either switch to use MDX (not supported out of the box by Netlify CMS though I believe) or downgrade Astro to v1.
@Marocco2 One side comment — I noticed you have
legacy.astroFlavoredMarkdown: true
in your config, but be aware that that option was removed from Astro in v2 too. So if you’re hoping to use components in.md
that won’t work. You’d need to either switch to use MDX (not supported out of the box by Netlify CMS though I believe) or downgrade Astro to v1.
I did follow your older instructions to get the plugin working (with no luck) but .MD files are still working in Astro 2.8 without legacy.astroFlavoredMarkdown: true
.
Switching to .mdx is not possible as I use NetlifyCMS to this day and it doesn't treat nicely with hero images
.md
files will work fine for standard Markdown usage but do not support components — so astro-embed
also cannot work for Astro v2 with plain .md
unfortunately.
I see. Well, let's just make this plugin compiling first and foremost for those who are interested in using this integration
My astro.config.mjs:
My package.json: