Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmedelwerdany/textlint-rule-no-empty-element

textlint rule that checks if any element in the markdown file is empty.
https://github.com/ahmedelwerdany/textlint-rule-no-empty-element

lint linter markdown

Last synced: 24 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# textlint-rule-no-empty-element

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

**OK** :green_heart:

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

- list item

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

**NG** :negative_squared_cross_mark:

> Found Empty Header: `#`

> Found Empty Header: `##`

> Found Empty Header: `###`

> Found Empty ListItem: `-`

> Found Empty Code: ` ``` ``` `

```
#
##
###
-

``` ```
```

## Install

Install with [npm](https://www.npmjs.com/):

npm install textlint-rule-no-empty-element

## Usage

Via `.textlintrc`(Recommended)

```json
{
"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](https://github.com/textlint/textlint-tester).

npm test

## License

ISC ©