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

Usage example with Next.js app-directory #13

Closed
tim-hilt opened this issue Nov 28, 2023 · 2 comments
Closed

Usage example with Next.js app-directory #13

tim-hilt opened this issue Nov 28, 2023 · 2 comments

Comments

@tim-hilt
Copy link

tim-hilt commented Nov 28, 2023

Next.js' documentation explicitly mentions remark-frontmatter on their page to set up mdx-support in Next.js, but they aren't explaining how the generated exports can be used.

I'm not too deep into how remark-plugins work. Do you now how it works? If so, can it be explained simply?

If this is something you would be interested in, I could make two PRs to enhance both this repositories README.md and the Next.js docs. This wouldn't only help me out with what I currently want to do, but also potentially advertise this plugin to a bigger audience.

@remcohaszing
Copy link
Owner

I don't really understand what needs to be explained. The generated export can be used like any other export.

If you would like to learn more about plugins, unified has some guides. You can also look at existing plugins. I also recommend using AST explorer to see what code generates what AST.

I'm not really interested in adding platform specific instructions to the readme, but it would be great if Next.js links to this plugin.

@remcohaszing
Copy link
Owner

I created vercel/next.js#59238.

@remcohaszing remcohaszing closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants