Use Docusaurus markdown render in my app?

I have a Next.js app, and I want to add Markdown and MDX rendering to it. I really like the Markdown and MDX rendering in Docusaurus, and I want to add similar functionality to my web app.

What plugins should I use?

I have tried some Markdown render packages from npm, but they are not as good as Docusaurus’s Markdown render.