Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable internal anchor checks by link checker tool #41

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

per1234
Copy link
Owner

@per1234 per1234 commented Aug 21, 2024

The "markdown-link-check" tool is used to check for broken links in this project's Markdown files.

Validation of links to internal anchors was recently added to the tool (tcort/markdown-link-check@6522186).

Although a much needed feature, unfortunately it does not currently support anchors created by HTML anchor tags (tcort/markdown-link-check#195).

For example, this is valid and common Markdown:

[click here](#some-anchor)
<a name="some-anchor"></a>

but will fail the check:

ERROR: 1 dead links found!
[x] #some-anchor -> Status: 404

This type of link markup is used in cases where the anchors automatically generated for the headings might be ambiguous.

The solution is to configure markdown-link-check to skip these links.

This change should be be reverted whenever the tool is able to correctly validate all internal anchor links.

The markdown-link-check tool is used to check for broken links in this project's Markdown files.

Validation of links to internal anchors was recently added to the tool.

Although a much needed feature, unfortunately it does not currently support anchors created by HTML anchor tags.

For example, this is valid and common Markdown:

[click here](#some-anchor)
<a name="some-anchor"></a>

but will fail the check:

ERROR: 1 dead links found!
[x] #some-anchor -> Status: 404

This type of link markup is used in cases where the anchors automatically generated for the headings might be ambiguous.

The solution is to configure markdown-link-check to skip these links.

This change should be be reverted whenever the tool is able to correctly validate all internal anchor links.
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: infrastructure Related to project infrastructure labels Aug 21, 2024
@per1234 per1234 self-assigned this Aug 21, 2024
@per1234 per1234 merged commit 6b411f3 into main Aug 21, 2024
56 checks passed
@per1234 per1234 deleted the markdown-link-check-ignore-fragment branch August 21, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant