mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #1424] MD051 - Support alternate heading link algorithms #683
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#683
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 @otteydw on GitHub (Nov 18, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1424
My team primarily uses Bitbucket which has an alternate algorithm for linking to headings. In the case of Bitbucket, they want the linked headings to begin with
#markdown-header-such that a link to the header "My Header" would need to be[my header](#markdown-header-my-header).I don't know if there are other algorithms around (and I truly wish that Bitbucket did not use this uncommon algorithm), I was wondering if an option could be added to rule MD051 that supported Bitbucket's algorithm specifically? Or maybe an option to allow us to specify a header prefix that we should require for the link fragment to be valid?
@DavidAnson commented on GitHub (Nov 18, 2024):
Duplicate of https://github.com/DavidAnson/markdownlint/issues/547#issuecomment-1361218474
I'll revisit this soon.
@otteydw commented on GitHub (Nov 18, 2024):
Ugh, I swear I did search for it. I'm not sure how I missed that. Thank you.
@otteydw commented on GitHub (Nov 18, 2024):
Sorry, I'm actually not sure if I should have closed this or not. Please re-open if you need that for tracking.
@DavidAnson commented on GitHub (Nov 18, 2024):
It's cool. :) I have a private TODO list I use for tracking.