textlint-rule-no-empty-section

1.1.0 • Public • Published

textlint-rule-no-empty-section

textlint rule not allow to create empty section.

Features

OK 💚

# Header A

text.

# Header B

text.

OK: Header 1 contains Header 2

# Header 1

## Header 2

text.

NG

Found empty header: # Header2

# Header A

text.

# Header B

Section

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-section

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "no-empty-section": true
    }
}

Via CLI

textlint --rule no-empty-section README.md

Reference

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

Readme

Keywords

Package Sidebar

Install

npm i textlint-rule-no-empty-section

Weekly Downloads

1,496

Version

1.1.0

License

MIT

Last publish

Collaborators

  • azu