mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #67] MD013 (line-length) and emphasized links #56
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#56
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 @EvgenyOrekhov on GitHub (Jul 21, 2017).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/67
It is impossible to break these examples into multiple lines:
I think MD013 (line-length) should ignore these cases.
@DavidAnson commented on GitHub (Jul 22, 2017):
Whitespace/newlines are supported with links: http://spec.commonmark.org/0.27/#links
Link references can also be used and also support whitespace/newlines: http://spec.commonmark.org/0.27/#link-reference-definitions
I think this covers your scenario without needing changes to
MD013?Link to playground to try
@EvgenyOrekhov commented on GitHub (Jul 22, 2017):
@DavidAnson If the goal of markdownlint is to support only the CommonMark specification, then yes, it does. And in that case
0c1f403should be reverted.@DavidAnson commented on GitHub (Jul 22, 2017):
I like using the CommonMark specification because it is clear, well written, and seems to be the thing most people are moving toward. I realize not all parsers completely support it, but it acts as a good reference point and basis for decision-making.
In the case of the previous issue, perhaps I should not have supported that scenario. However, it seems like the kind of thing an average user might try to do and it's nice to give them something that works without having to read a specification or change to a different parser.
This issue is only slightly more complicated, so I will probably handle it as well - but the thing I want to avoid is chasing more scenarios like this that are increasingly difficult and rare in practice.
@EvgenyOrekhov commented on GitHub (Jul 22, 2017):
@DavidAnson A linter absolutely should give a warning if a piece of code can be rewritten in a better way. But again, if the goal of markdownlint is to help write markdown that is going to be properly rendered in all the different markdown parsers, then markdownlint should stick to a subset of markdown and should not warn on the cases where the code can't be rewritten.