textlint plugin to lint MDX files. Latest version 1.1.0 (released 2025-05-23). Supports MDX 3+ with ESM-only, requires TypeScript 5+ as peer dependency. Key differentiator: native MDX parsing with remark-directive and GFM support, unlike using generic markdown plugin which can break MDX syntax. No browser usage.
npm install textlint-plugin-mdxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure textlint-plugin-mdx in .textlintrc.json and use it programmatically with ESLint-like results.
Use import syntax or dynamic import()
Remove .mdx from @textlint/textlint-plugin-markdown extensions and use textlint-plugin-mdx
Install TypeScript: npm install --save-dev typescript@^5.0.0
Use plugin directly as object, not with new
Install package: npm install textlint-plugin-mdx
Use import syntax or set type: 'module' in package.json
Use plugin object directly: engine.addPlugin(textlintPluginMdx)