インラインコードの周りをスペースで囲むかどうかを決めるtextlintルール
npm install textlint-rule-ja-space-around-codeインラインコードの周りをスペースで囲むかどうかを決めるtextlintルール
インラインコードとはTxtASTのCode nodeのことです。
このルールでは、インラインコードの前後が日本語である場合に半角スペースを入れるかを決定します。
オプションでスペースの有無を決定できます。
code と日本語の間はスペースを空ける
codeと日本語の間はスペースを空けない
Install with npm:
npm install textlint-rule-ja-space-around-code
Via .textlintrc(Recommended)
``json`
{
"rules": {
"ja-space-around-code": true
}
}
Via CLI
``
textlint --rule ja-space-around-code README.md
- before: booleanfalse
- デフォルト: true
- なら、Codeの前に半角スペースを入れるafter
- : booleanfalse
- デフォルト: true
- なら、Codeの後に半角スペースを入れる
デフォルト値は次のようになります。
`json`
{
"rules": {
"ja-space-around-code": {
"before": false,
"after": false
}
}
}

textlint --fixの自動修正に対応しています。
See Releases page.
Install devDependencies and Run npm test:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT © azu