1.2.0 • Published 7 months ago

@0x6b/textlint-rule-normalize-whitespaces v1.2.0

Weekly downloads
40
License
MIT
Repository
github
Last release
7 months ago

textlint-rule-normalize-whitespaces

textlint rule which replaces following whitespaces to normal whitespace (U+0020) in your document.

Code PointName
U+00A0NO-BREAK SPACE
U+1680OGHAM SPACE MARK
U+2000EN QUAD
U+2001EM QUAD
U+2002EN SPACE
U+2003EM SPACE
U+2004THREE-PER-EM SPACE
U+2005FOUR-PER-EM SPACE
U+2006SIX-PER-EM SPACE
U+2007FIGURE SPACE
U+2008PUNCTUATION SPACE
U+2009THIN SPACE
U+200AHAIR SPACE
U+202FNARROW NON-BREAKING SPACE
U+205FMEDIUM MATHEMATICAL SPACE
U+3000IDEOGRAPHIC SPACE

Install

Install with npm:

npm install @0x6b/textlint-rule-normalize-whitespaces

This module requires Node.js >= 16.0.0.

Usage

Via .textlintrc(recommended):

{
  "rules": {
    "@0x6b/normalize-whitespaces": true
  }
}

Via CLI:

textlint --rule @0x6b/normalize-whitespaces README.md

Build

Builds source codes for publish to the lib/ folder. You can write ES2015+ source codes in src/ folder.

npm install && npm run build

Test

Run test code in test folder by textlint-tester.

npm test

References

License

MIT © 0x6b

1.2.0

7 months ago

1.1.4

7 months ago

1.1.3

12 months ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago