-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
💬 type/discussionThis is a request for commentsThis is a request for comments
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!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
💬 type/discussionThis is a request for commentsThis is a request for comments