mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #973] MD007: Allow several values for start_indent #2427
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#2427
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 @skwde on GitHub (Sep 14, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/973
Here are the relevant
.markdownlint.yamlsettingsThis might be related to https://github.com/DavidAnson/markdownlint/issues/284.
The following markdown
is formatted to
because the
ulis thought to be at level two, but the actualullevel is 1, just appears under anol.If we can specify
Another use case are configuration possibilities when using the plugins for admonitions or content tabs (Both are fairly popular for the commonly used mkdocs material theme for documentation.
markdown-it-admonsupport for admonitions is added (somehow related https://github.com/DavidAnson/vscode-markdownlint/issues/302 at least for me :)).However than problems arise with
Similarly if the proposed rule of https://github.com/DavidAnson/markdownlint/issues/138 is implemented it is also important there.
@DavidAnson commented on GitHub (Sep 14, 2023):
The existing issues you've linked to seem to cover most of what you describe here. What is new or unique for this issue?
@skwde commented on GitHub (Sep 15, 2023):
To my understanding https://github.com/DavidAnson/markdownlint/issues/284 only asks for a check on the correct number of spaces?! I linked it because I though required changes are similiar?!
Whereas I asked for the possibility to allow
ulto start at multiples ofstart_indent.Here are some examples demonstrating what I ask for.
With
we only allow lists to start at the beginning of the line, e.g.
While with
we allow
but not the example starting at the beginning of the line.
With a setting
allow_multiple_start(or similar):we would be more flexible.
Moreover, as I mentioned in the issue description, with the config I posted, the
ullist inside theolis recognized to start at level 2ullist and formatted accordingly (starting it with a+instead a-). In my mind that's unexpected behavior?!