Update MD007/ul-indent to report/fix for all unordered list item groupings.

This commit is contained in:
David Anson 2019-12-01 17:30:47 -08:00
parent 3981bc7897
commit 3e91da338c
9 changed files with 143 additions and 37 deletions

View file

@ -22,7 +22,7 @@ module.exports.inlineCommentRe = inlineCommentRe;
// Regular expressions for range matching
module.exports.bareUrlRe = /(?:http|ftp)s?:\/\/[^\s]*/ig;
module.exports.listItemMarkerRe = /^[\s>]*(?:[*+-]|\d+[.)])\s+/;
module.exports.listItemMarkerRe = /^([\s>]*)(?:[*+-]|\d+[.)])\s+/;
module.exports.orderedListItemMarkerRe = /^[\s>]*0*(\d+)[.)]/;
// readFile options for reading with the UTF-8 encoding