mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #379] MD013 false positive with ul, checkbox, link, and italicized trailing text #317
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#317
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 @hepcat72 on GitHub (Mar 24, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/379
It seems to me that the following should not generate a
MD013error:Generates an error:
Since this does not generate an error:
Does not generate an error:
Error:
@DavidAnson commented on GitHub (Mar 24, 2021):
In its default configuration, MD013 does not report a violation if there are no spaces after the threshold. As explained in the documentation, this is to allow for things like long URLs (your second scenario). In the case of your first scenario, the extra text after the URL includes spaces and could be wrapped. There are other modes for this rule if you wish to be more or less strict: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md013
@hepcat72 commented on GitHub (Mar 24, 2021):
I see. Is there a rule to not include URL-related characters that are not rendered, in the count, such as
[,], and(*)?@DavidAnson commented on GitHub (Mar 24, 2021):
No, this rule is about how the Markdown file looks in the editor. Some people prefer not to have very long lines and this rule can help enforce that. If you are not worried about that part of the editing experience or use word wrap in your editor, it can be safely disabled without affecting the end-user experience.
@hepcat72 commented on GitHub (Mar 24, 2021):
Ah. Yes, we are concerned with line length and generally have a project-wide 80 character limit. URLs in markdown though seem to be an exception, at least for us. I guess I misinterpreted the overall intent of this rule. Thanks for the explanation. It makes sense.