mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #302] [MD013] Allow trailing dashes in long list items #258
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#258
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 @kdeldycke on GitHub (Jul 2, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/302
Here is Markdown list of very long items:
It properly renders into 4 items:
But it does not comply with the
MD013rule:Now I'd like to limit each line to 80 characters. My cleaned-up markdown now looks like:
But this makes
markdownlintunhappy:The thing is I can't simply split the 4th item before the middle dash. The layout below:
rightfully renders the last description into its own sub-list:
This is an edge-case, and I'd like to have
markdownlintdetect and allow for trailing spaces and dashes in long lines.For reference, here the version I'm using:
For the record, this edge-case is currently being discussed at:
@DavidAnson commented on GitHub (Jul 2, 2020):
You can do this today with link references. Here is your example without any warnings:
https://dlaa.me/markdownlint/#%25m%23%20Issue%20302%0A%0A-%20%5BLink%201%5D(%23link-1)%20-%20Description%20of%20line%201.%0A-%20%5BLink%202%5D(%23link-2)%20-%20A%20very%20long%20description%20for%20the%20second%20link%20in%20the%20list.%0A%20%20That%20description%20is%20more%20than%2080%20characters%20wide.%0A-%20%5BThis%20is%20a%20very%20long%20title%2C%20pointing%20to%20an%20awesome%20article%20on%20incredible%0A%20%20stuff%20we're%20not%20used%20to%20see%20everyday%5D(%23link-3)%20-%20Line%20%5C%233's%20description.%0A-%20%5BLink%20number%0A%20%20three%5D%5Blink3%5D%20-%20Fourth%20description.%0A%0A%5Blink3%5D%3A%20%23this-is-a-very-long-url-that-is-pointing-to-a-really-really-great-website%0A%0A%3C!--%20markdownlint-configure-file%20%7B%20%22MD013%22%3A%20true%20%7D%20--%3E%0A
@kdeldycke commented on GitHub (Jul 10, 2020):
Seems to renders quite well by most implementations: https://johnmacfarlane.net/babelmark2/?text=%23+Issue+302%0A%0A-+%5BLink+1%5D(%23link-1)+-+Description+of+line+1.%0A-+%5BLink+2%5D(%23link-2)+-+A+very+long+description+for+the+second+link+in+the+list.%0A++That+description+is+more+than+80+characters+wide.%0A-+%5BThis+is+a+very+long+title%2C+pointing+to+an+awesome+article+on+incredible%0A++stuff+we%27re+not+used+to+see+everyday%5D(%23link-3)+-+Line+%5C%233%27s+description.%0A-+%5BLink+number%0A++three%5D%5Blink3%5D+-+Fourth+description.%0A%0A%5Blink3%5D%3A+%23this-is-a-very-long-url-that-is-pointing-to-a-really-really-great-website
@DavidAnson commented on GitHub (Jul 21, 2020):
I will close this issue because it seems link references are working well.
@kdeldycke commented on GitHub (Jul 26, 2020):
OK to close that one. And thanks @DavidAnson for the tip.