When using mdx it is quite handy to have meta data related to a page/post that is kept somewhere. In my experience front matter is a straight forward way to keep this data in the same. This approach is used with other popular tools like docz and jekyll.
As of right now we need to keep this data else where in the app. Front matter seems like a nice solution for this issue.
Any ideas or plans regarding this in the close future?
Thank you for the awesome tools!
@antonk52 Isn't this already possible with exports?
exports is a nice alternative but for more tech oriented tasks. In our case we have people unfamiliar with javascript who have to touch up and create mdx files and in this case yml format works pretty great.
You could write a MDX plugin that transforms frontmatter to export in the AST. This doesn't really relate to Next.js so I'll close the issue.
Most helpful comment
exportsis a nice alternative but for more tech oriented tasks. In our case we have people unfamiliar with javascript who have to touch up and createmdxfiles and in this caseymlformat works pretty great.