What is @mdx-js/mdx?
mainThe @mdx-js/mdx package is the core MDX compiler. Its primary responsibilities are:
- Turning MDX content into JavaScript.
- Evaluating MDX code.
When to use this package directly: Use this package when you need maximum control over the compilation process.
When to use an integration instead: If you are using a bundler (Rollup, esbuild, webpack), a site builder (Next.js), or a build system (Vite), use the specific integration designed for that tool rather than calling this API directly.