shuding / nextra

Simple, powerful and flexible site generation framework with everything you love from Next.js.
https://nextra.site
MIT License
11.27k stars 1.23k forks source link

Support MDX syntax within .MD files #3060

Open GokulPraveenB opened 1 month ago

GokulPraveenB commented 1 month ago

I'm requesting a feature like Docusaurus to use MDX syntax within .md files. Refer link

Why: I work in a tech company and my company's web-based code editor renders a live preview of .md files, but doesn't recognize .mdx. Since our current documentation site uses Docusaurus, we're able to make simple edits our content on the web editor with a live preview capability. We really liked Nextra's cleaner look and out of the box search and would like to migrate, but since we're unable to get a live preview of .mdx, it makes it harder to make quick edits. Please not that our documentation is an internal only site and we're unable to use public live sandbox editors like codesandbox or stackblitz.

If this is a simple change to use the MDX compiler for .md files as well, can we make this happen?

lacymorrow commented 1 month ago

For what it's worth, I'm working on an integration with TinaCMS to acheive a live-preview editor