npm install standard-markdown --save
This module works just like
Lint everything in the current directory:
Or lint some other directory:
All files with
.markdown extension are linted, and the following directories are ignored:
If you want to specify which files to lint / which files to ignore you can use glob patterns
# This will lint everything in some/directory except everything in some/directory/apistandard-markdown some/directory **/*.md !api/**/*.md# You also don't need to specify CWD to use globs# This will only lint markdown file in the current directorystandard-markdown *.md
This module also provides the ability to automatically fix common syntax issues like extra semicolons, bad whitespacing, etc. This functionality is provided by standard.
standard-markdown some/directory --fix
Once the module has attempted to fix all your issues it will run the linter on the generated files so you can see how much it fixed.
This module disables certain rules that were considered inappropriate for linting JS blocks:
npm installnpm test
globwith support for multiple patterns and exposes a Promise API
_.flattenexported as a module.
_.rangeexported as a module.