Closed
Description
Hi. Markdown file transclusion (MFT) is super cool, but I cannot find a way to do the equivalent when all of the markdown is defined in the same file. Something like:
// page.mdx
import FancyLayout from '../components/FancyLayout
# Title
[1] Parsed _markdown_ content
<FancyLayout>
[2] More parsed _markdown_ content, in a fancy layout
</FancyLayout>
I would like [2]
to be parsed as markdown, but not sure how, beyond defining it in a separate file and using MFT. I'd like to keep it all in one file, though, for the sake of non-technical authors. Do I need to somehow make FancyLayout an MDX-savvy component?
If it's relevant, I'm using gatsby-mdx on a brand-new gatsby-starter-default.
Thanks!