Package Exports
- remark-lint-no-chinese-punctuation-in-number
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remark-lint-no-chinese-punctuation-in-number) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
remark-lint-no-chinese-punctuation-in-number
Warn when specific Chinese punctuations found inside number.
Example
valid.md
In
时间是 00:00 分。
总价是 1.23 元。
一共 100,000 元。
Out
No messages.
invalid.md
In
时间是 00:00 分。
一共 100,000 元。
Out
input.md:1:7: Should not use ":" in number
input.md:2:7: Should not use "," in number
Install
npm install remark-lint-no-chinese-punctuation-in-number
Usage
You probably want to use it on the CLI through a config file:
...
"remarkConfig": {
"plugins": [
...
"remark-lint",
+ "remark-lint-no-chinese-punctuation-in-number",
...
]
}
...
Or use it on the CLI directly
remark -u remark-lint -u remark-lint-no-chinese-punctuation-in-number 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-no-chinese-punctuation-in-number'))
.process('_Emphasis_ and **importance**', function (err, file) {
console.error(report(err || file));
});