Fix MD007/ul-indent to use parent indent instead of previous indent (fixes #106).

This commit is contained in:
David Anson 2018-03-05 20:56:12 -08:00
parent 748c8cac17
commit 40ace5bb5e
6 changed files with 58 additions and 15 deletions

View file

@ -13,7 +13,7 @@ module.exports = {
shared.flattenLists().forEach(function forList(list) {
if (list.unordered && !list.nesting) {
shared.addErrorDetailIf(onError, list.open.lineNumber,
0, shared.indentFor(list.open), null,
0, list.indent, null,
shared.rangeFromRegExp(list.open.line, shared.listItemMarkerRe));
}
});