cnlint

1.0.2 • Public • Published

🚒 CNLint

Lint tool for markdown with Simplified Chinese and English.
中英文混合排版的 Markdown Lint 工具。

Tutorial

Please see: Markdown 简体中文与西文混排要点

Install

$ npm install -g cnlint

Usage

$ cnlint -h
  Usage: cnlint [options] [command]
  
  Commands:
    help     Display help
    version  Display version
  
  Options:
    -d, --debug [value]  Show debug log (defaults to "false")
    -h, --help           Output usage information
    -r, --rule           Use local `**.js` file as new rule.
    -v, --version        Output the version number
  
  Examples:
    - Lint all markdown files pwd.
    $ cnlint ./**/*.md
 
    - Lint multiple markdown files.
    $ cnlint ./demo1.md ./demo2.md
 
    - Show debug logs when lint files.
    $ cnlint --debug=true ./example.md
 
    - Use local rule to lint. See: https://github.com/DavidAnson/markdownlint/blob/master/doc/CustomRules.md
    $ cnlint --rule=./my-rule.js

demo

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    3
  • 1.0.1
    2

Package Sidebar

Install

npm i cnlint

Weekly Downloads

5

Version

1.0.2

License

MIT

Unpacked Size

1.08 MB

Total Files

16

Last publish

Collaborators

  • jeason