Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front matter in @next/mdx #8857

Closed
antonk52 opened this issue Sep 25, 2019 · 4 comments
Closed

front matter in @next/mdx #8857

antonk52 opened this issue Sep 25, 2019 · 4 comments

Comments

@antonk52
Copy link

Feature request

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!

@Janpot
Copy link
Contributor

Janpot commented Sep 25, 2019

@antonk52 Isn't this already possible with exports?

@antonk52
Copy link
Author

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.

@timneutkens
Copy link
Member

timneutkens commented Sep 26, 2019

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.

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants