Rendering MDX in a Svelte component when using Astro
I just wrote a new blog post!
This one is a little bit advanced because we dive into Astro, Svelte, and MDX. The people who took my Build and Deploy class last year would love it — because it’s a level up of what I taught before.
Here’s what this is about:
I like to use both Svelte and MDX when I work with Astro… but I encounter a problem when using all three of them at once — I can import an MDX file directly into Astro, but can I import MDX into Svelte?
Normally, you can’t. But there’s a way to use MDX with Svelte. And that’s what I’m going to share with you today.
Enjoy!
Stay awesome,
Zell
P.S. I’m almost ready to unveil the thing I’ve been talking about since December… Just finished designing the product page and I’m coding it up right now. As I’m coding it, I’m also incorporating the newer CSS stuff so it’ll take just a bit longer.
But soon!