@0x6b/textlint-rule-normalize-whitespaces 中文文档教程
textlint-rule-normalize-whitespaces
textlint 规则将文档中的以下空格替换为普通空格 (U+0020
)。
Code Point | Name |
---|---|
U+00A0 | NO-BREAK SPACE |
U+1680 | OGHAM SPACE MARK |
U+180E | MONGOLIAN VOWEL SEPARATOR |
U+2000 | EN QUAD |
U+2001 | EM QUAD |
U+2002 | EN SPACE |
U+2003 | EM SPACE |
U+2004 | THREE-PER-EM SPACE |
U+2005 | FOUR-PER-EM SPACE |
U+2006 | SIX-PER-EM SPACE |
U+2007 | FIGURE SPACE |
U+2008 | PUNCTUATION SPACE |
U+2009 | THIN SPACE |
U+200A | HAIR SPACE |
U+202F | NARROW NON-BREAKING SPACE |
U+205F | MEDIUM MATHEMATICAL SPACE |
U+3000 | IDEOGRAPHIC SPACE |
Install
npm install @0x6b/textlint-rule-normalize-whitespaces # or
yarn add @0x6b/textlint-rule-normalize-whitespaces
此模块需要 Node .js >= 6.
Usage
通过 .textlintrc
(推荐):
{
"rules": {
"@0x6b/normalize-whitespaces": true
}
}
通过 CLI:
textlint --rule @0x6b/normalize-whitespaces README.md
Build
构建源代码以发布到 lib/
文件夹。 您可以在 src/
文件夹中编写 ES2015+ 源代码。
npm install && npm run build # or
yarn && yarn build
Test
通过 textlint-tester 在 test
文件夹中运行测试代码。
npm test # or
yarn test
References
- The Unicode (r) Standard Version 10.0 Core Specification, Chapter 6 Writing Systems and Punctuation, Table 6-2. Unicode Space Characters
- Unicode spaces
License
麻省理工学院 © 0x6b
textlint-rule-normalize-whitespaces
textlint rule which replaces following whitespaces to normal whitespace (U+0020
) in your document.
Code Point | Name |
---|---|
U+00A0 | NO-BREAK SPACE |
U+1680 | OGHAM SPACE MARK |
U+180E | MONGOLIAN VOWEL SEPARATOR |
U+2000 | EN QUAD |
U+2001 | EM QUAD |
U+2002 | EN SPACE |
U+2003 | EM SPACE |
U+2004 | THREE-PER-EM SPACE |
U+2005 | FOUR-PER-EM SPACE |
U+2006 | SIX-PER-EM SPACE |
U+2007 | FIGURE SPACE |
U+2008 | PUNCTUATION SPACE |
U+2009 | THIN SPACE |
U+200A | HAIR SPACE |
U+202F | NARROW NON-BREAKING SPACE |
U+205F | MEDIUM MATHEMATICAL SPACE |
U+3000 | IDEOGRAPHIC SPACE |
Install
npm install @0x6b/textlint-rule-normalize-whitespaces # or
yarn add @0x6b/textlint-rule-normalize-whitespaces
This module requires Node.js >= 6.
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 # or
yarn && yarn build
Test
Run test code in test
folder by textlint-tester.
npm test # or
yarn test
References
- The Unicode (r) Standard Version 10.0 Core Specification, Chapter 6 Writing Systems and Punctuation, Table 6-2. Unicode Space Characters
- Unicode spaces
License
MIT © 0x6b
更多
你可能也喜欢
- 4sure-utilities 中文文档教程
- @0xcert/ethereum-gateway-contracts 中文文档教程
- @0xsequence/erc-1155 中文文档教程
- @11ty/eleventy-plugin-inclusive-language 中文文档教程
- @160over90/vue-tweened-number 中文文档教程
- @1o1w1/react-error-overlay 中文文档教程
- @2ng/dynamic-component 中文文档教程
- @36node/redux-cron 中文文档教程
- @36node/template-wxapp 中文文档教程
- @3kles/kles-crud-service 中文文档教程