Skip to content

textlint rule that checks if any element in the markdown file is empty.

Notifications You must be signed in to change notification settings

AhmedElwerdany/textlint-rule-no-empty-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textlint-rule-no-empty-element

textlint rule that checks if any element in the markdown file is empty.

Features

OK 💚

# Header 1
## Header 2
### Header 3

- list item

```npm i textlint-rule-no-empty-element```

NG

Found Empty Header: #

Found Empty Header: ##

Found Empty Header: ###

Found Empty ListItem: -

Found Empty Code: ``` ```

#
##
###
-

``` ```

Install

Install with npm:

npm install textlint-rule-no-empty-element

Usage

Via .textlintrc(Recommended)

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

Via CLI

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

Build

Builds source codes for publish to the lib folder. You can write ES2015+ source codes in src/ folder.

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

ISC ©

About

textlint rule that checks if any element in the markdown file is empty.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published