kentcdodds / mdx-bundler

šŸ¦¤ Give me MDX/TSX strings and I'll give you back a component you can render. Supports imports!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to render the excerpt as a component

cayblood opened this issue Ā· comments

I'm trying to figure out how to take the excerpt from matter and render it as a component. Right now, the markdown in my excerpt is not being parsed. An example in the docs would be appreciated.

Not sure if this is the most optimal solution, but once you get the excerpt as an output from running bundleMdx maybe you can pass the excerpt into mdx-bundler again, then wrap it around the component you want it to be in.