
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
remark-lint-spaces-around-word
Advanced tools
remark lint plugin that checks if there are spaces between English word and Chinese
According to chinese-document-style-guide, there should be spaces between English word and Chinese characters. This lint will warn when space is missing in such cases.
valid.md
In
这是一份中文 API 文档。
Out
No messages.
invalid.md
In
这是一份中文API文档。
Out
input.md:1:7-1:9: Should have spaces around "API"
npm install remark-lint-spaces-around-word
You probably want to use it on the CLI through a config file:
...
"remarkConfig": {
"plugins": [
...
"remark-lint",
+ "remark-lint-spaces-around-word",
...
]
}
...
Or use it on the CLI directly
remark -u remark-lint -u remark-lint-spaces-around-word readme.md
Or use this on the API:
var remark = require('remark');
var report = require('vfile-reporter');
remark()
.use(require('remark-lint'))
+ .use(require('remark-lint-spaces-around-word'))
.process('_Emphasis_ and **importance**', function (err, file) {
console.error(report(err || file));
});
FAQs
remark lint plugin that checks if there are spaces between English word and Chinese
The npm package remark-lint-spaces-around-word receives a total of 1,041 weekly downloads. As such, remark-lint-spaces-around-word popularity was classified as popular.
We found that remark-lint-spaces-around-word demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.