Skip to content

Commit

Permalink
docs: Add example of how to use textlint-filter-rule-comments to README
Browse files Browse the repository at this point in the history
  • Loading branch information
3w36zj6 committed Apr 1, 2024
1 parent afe6419 commit 18d379d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ bun add textlint-plugin-mdx
- `extensions`: `string[]`
- Additional file extensions for MDX

## Examples

### textlint-filter-rule-comments

Example of how to use [textlint-filter-rule-comments](https://www.npmjs.com/package/textlint-filter-rule-comments) is shown below. There is no need to use syntax such as `{/* <!-- textlint-disable --> */}`.

```mdx
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!
Expand Down

0 comments on commit 18d379d

Please sign in to comment.