mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #424] No bare URL (MD034) doesn't support autolink titles #353
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#353
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 @mondeja on GitHub (Aug 30, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/424
I'm not sure if I should open this here, please close it if you found it out of scope.
The problem is simple, an autolink with title like
<https://foo.bar "with title">breaks the MD034 rule. I've seen that this parsing is not supported by markdown-it, but other parsers based on CommonMark like MD4C support it.The latest CommonMark spec is not clear about if it should be supported, possibly breaking the "Spaces are not allowed in autolinks" statement.
So I'm very confused here. Should markdownlint allow that? Should CommonMark spec clarify this? Is possible to use a markdown-it plugin that implements this when using markdownlint?
Thanks for your great work!
@nschonni commented on GitHub (Aug 30, 2021):
It doesn't seem that autolinks support titles at all
@DavidAnson commented on GitHub (Aug 30, 2021):
Agreed, example 601 of the CommonMark specification explicitly forbids space in autolinks: https://spec.commonmark.org/0.30/#example-601
That said, MD034 is written so that if a markdown extension parsed an autolink with a space, it would not then be reported as a violation.
@mondeja commented on GitHub (Aug 30, 2021):
OK, thanks!