1.1.0 • Published 9 years ago
textlint-rule-no-empty-section v1.1.0
textlint-rule-no-empty-section
textlint rule not allow to create empty section.
Features
OK :green_heart:
# Header A
text.
# Header B
text.OK: Header 1 contains Header 2
# Header 1
## Header 2
text.NG :negative_squared_cross_mark:
Found empty header:
# Header2
# Header A
text.
# Header BSection
This rule defined section as following:
The Markdown contents
# Header A
text.
# Header B
text.to be
------------|---- # Header A
|
Section1 | text.
|
------------|---- # Header B
|
Section2 | text.
|
------------|---------------A section is slitted by Header Node.
Install
Install with npm:
npm install textlint-rule-no-empty-sectionUsage
Via .textlintrc(Recommended)
{
"rules": {
"no-empty-section": true
}
}Via CLI
textlint --rule no-empty-section README.mdReference
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test:
npm i -d && npm testContributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Author
License
MIT © azu