textlint-plugin-mdx

1.0.2 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.295latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.295
1.0.1678
1.0.00

Package Sidebar

Install

npm i textlint-plugin-mdx

Weekly Downloads

773

Version

1.0.2

License

MIT

Unpacked Size

450 kB

Total Files

4

Last publish

Collaborators

  • azu
  • 3w36zj6