mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #370] MD042 (No empty links) trips on notes #310
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#310
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 @GoodClover on GitHub (Feb 20, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/370
In some markdown flavours notes can be created:
You can use a cheap hack to make this work in other flavours1 by adding
<>to it so it will be treat as a link and using""to make the note a title.However using
<>trips upMD042(No empty links).I think it would be good if
MD042didn't include empty links with titles.Or, even better, have an error saying that you should be doing it with the footnote syntax.
<> "Like here on GitHub." ↩︎
@DavidAnson commented on GitHub (May 1, 2022):
GitHub now supports footnotes: https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/
I'll focus on that syntax and am having a look now.
@DavidAnson commented on GitHub (May 1, 2022):
The GitHub syntax seems to match what you show in the original comment above and does not produce any warnings in the next version of the library (nor in the current, though I only checked briefly). I've added a test file to ensure that remains true.