-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Labels
feature-requestNew feature or requestNew feature or request
Description
It would be very nice to use export in the .mdx files to better use layouts and other stuff. I also saw a few issues here where users tried to do this.
In my use case I am building a table of contents which should be rendered next to the markdown content.
I have a custom remark plugin which simply creates a list of all headings. In another project I simply write
export const toc = content which is pretty useful because I can now use this toc e.g. as the sidebar of my current layout.
In the current mdx-remote implementation I think the easiest way would be to parse the headings and insert the result into the frontmatter part but this is a bit ugly.
So maybe this feature will be implemented in the future :)
juice49, max-pod, cenk1cenk2, dimaMachina and shiny
Metadata
Metadata
Assignees
Labels
feature-requestNew feature or requestNew feature or request