Skip to content

Commit

Permalink
list-item-indent: add support for list.spread
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 23, 2018
1 parent c106224 commit 6eaf3e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remark-lint-list-item-indent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function listItemIndent(tree, file, pref) {
visit(tree, 'list', visitor)

function visitor(node) {
var loose = node.loose
var spread = node.spread || node.loose

if (!generated(node)) {
node.children.forEach(visitItem)
Expand All @@ -153,7 +153,7 @@ function listItemIndent(tree, file, pref) {
bulletSize = marker.trimRight().length

style =
pref === 'tab-size' || (pref === 'mixed' && loose)
pref === 'tab-size' || (pref === 'mixed' && spread)
? Math.ceil(bulletSize / 4) * 4
: bulletSize + 1

Expand Down

1 comment on commit 6eaf3e9

@niftylettuce
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the cause for #191

Please sign in to comment.