This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 1,000,000+ packages pre-installed, including
standard-markdown with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
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/api standard-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 directory standard-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 install npm test
globwith support for multiple patterns and exposes a Promise API
_.flattenexported as a module.
_.rangeexported as a module.