Skip to content

Commit

Permalink
Add better description to list-item-spacing
Browse files Browse the repository at this point in the history
Closes GH-78.
  • Loading branch information
wooorm committed Aug 6, 2016
1 parent 0e178ac commit d7abf05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,11 @@ When `'invalid'` is passed in, the following error is given:
Warn when list looseness is incorrect, such as being tight
when it should be loose, and vice versa.

According the [markdown-style-guide](http://www.cirosantilli.com/markdown-style-guide/),
if one or more list-items in a list spans more than one line,
the list is required to have blank lines between each item.
And otherwise, there should not be blank lines between items.

When this rule is turned on, the following file
`valid.md` is ok:

Expand Down
5 changes: 5 additions & 0 deletions lib/rules/list-item-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
* Warn when list looseness is incorrect, such as being tight
* when it should be loose, and vice versa.
*
* According the [markdown-style-guide](http://www.cirosantilli.com/markdown-style-guide/),
* if one or more list-items in a list spans more than one line,
* the list is required to have blank lines between each item.
* And otherwise, there should not be blank lines between items.
*
* @example {"name": "valid.md"}
*
* A tight list:
Expand Down

0 comments on commit d7abf05

Please sign in to comment.