-
Notifications
You must be signed in to change notification settings - Fork 622
Closed
Description
Mdx is a way to write React(or jsx) code in markdown, it can be used with remark/rehype plugins, which is a huge ecosystem.
I've checked some source code of our component document demo implementation, which separate each coding blocks using Regex, then compile them and combine the raw markdown part(using marked). This approach is a bit hacky.
I think embracing unified ecosystem is such a nice move in the future.
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
- Provide 'rax/jsx-runtime' exactly like React did in the new jsx transforming. For speed and for bundle size.
MDX support custom jsx runtime: https://v2.mdxjs.com/packages/mdx/#optionsjsxruntime - Provide more remark/rehype plugins to fit the need.
Metadata
Metadata
Assignees
Labels
No labels