#how to render MDX in an api route?

1 messages · Page 1 of 1 (latest)

slate sundial
#

i'm trying to return post content in my RSS feed, following the official docs, but it recommends using markdown-it, which of course not only works for MDX syntax but also leaves the import statements in the final string 🤢

i know i can convert from MDX to an Astro component using post.render() but i would like to be able to render the Astro component in place to get the final string. is this possible somehow?

Astro Documentation

Add an RSS feed to your Astro site to let users subscribe to your content.

fair daggerBOT
#
Quiet in here?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.