mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #930] MD013: Add override for lists #2406
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#2406
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 @lonix1 on GitHub (Aug 12, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/930
MD013 has overrides for tables, headings, code blocks, etc.
But not for lists:
It's common to have a paragraph as a bullet point. (Regrettably github doesn't render it nicely above, but in other tools it would be wrapped.)
That list inherits the 80 char limit. It would be nice to break the rule for lists, without changing the 80 value (which is good, in general).
@DavidAnson commented on GitHub (Aug 12, 2023):
The exceptions you list exist mainly because it may not be possible to limit their width. For example, table rows need to be on a single line or else it breaks the table structure. However, that is not the case for list items which behave the same as normal text. If someone wants to limit text to 80 columns, I don't see why they would want to allow list items to extend further when they could be wrapped at 80 columns just as easily. What's the scenario you have in mind here?
@lonix1 commented on GitHub (Aug 13, 2023):
If it's 80 chars then it's a line, whereas if it's x chars then it's a paragraph.
e.g.
vs
(Which of course is wrong because that should be one bullet point, not three).
I take your point about tables, that makes sense. If out of scope, please close. Thanks for considering it.
@DavidAnson commented on GitHub (Aug 13, 2023):
I don't think I understand. The following produces a three-item list with wrapping at 14 (or so) columns. I expect a similar approach to work for most lists.
@lonix1 commented on GitHub (Aug 13, 2023):
Thanks, I didn't realise the linter allows that syntax! 😄