mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #344] Question: Is it possible to enforce indent of multiline list item? #296
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#296
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ozkriff on GitHub (Nov 5, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/344
Is it possible to enforce the indentation of subsequent list item lines?
Like this
instead of
@DavidAnson commented on GitHub (Nov 5, 2020):
Not today, but a new rule could do this.
@scottamain commented on GitHub (Dec 22, 2022):
Yes, making multiline list indentations consistent would be great, including over-indented lines.
This is an exaggeration, but it would be great if markdownlint could spot this inconsistency:
@scottamain commented on GitHub (Dec 22, 2022):
FYI, I now realize that the auto-fix for MD007 actually causes this problem a bit, because a list item goes from this (extra list indentation):
To this:
@pwalleni commented on GitHub (Jan 5, 2023):
👀
@Ravlen commented on GitHub (Jan 15, 2024):
@DavidAnson Or perhaps a new parameter for
MD005/indentation(Edit: orMD007/ul-indent) ? Something likemultiline: true/false, which defaults to false so that it's not a breaking change?I recently ran into a doc with a lot of inconsistency, so I did a search on the full docs set. Unfortunately, due to the number of contributors, I found that we had 1000+ examples of list items where the first line (both unordered and ordered) were aligned properly thanks to MD005, but the subsequent lines had no consistency. For example: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/140956/diffs (work not finished, see https://gitlab.com/gitlab-org/gitlab/-/issues/437118).