Skip to content

textlint/textlint-plugin-mdx

Repository files navigation

textlint-plugin-mdx

NPM Version NPM Downloads NPM License CI

textlint plugin to lint MDX

Installation

# npm
npm install textlint-plugin-mdx

# Yarn
yarn add textlint-plugin-mdx

# pnpm
pnpm add textlint-plugin-mdx

# Bun
bun add textlint-plugin-mdx

Usage

Caution

If you have enabled the .mdx extension in @textlint/textlint-plugin-markdown, please remove it.

{
  "plugins": {
    "mdx": true
  }
}

Options

  • extensions: string[]
    • Additional file extensions for MDX

Examples

textlint-filter-rule-comments

Example of how to use textlint-filter-rule-comments is shown below. There is no need to use syntax such as {/* <!-- textlint-disable --> */}.

This is error text.

{/* textlint-disable */}

This is ignored text by rule.
Disables all rules between comments

{/* textlint-enable */}

This is error text.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Maintainers

License

MIT License