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

Introduce flag to turn off reporting of missing anchors #56

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

emielbeinema
Copy link
Contributor

On some websites, fragment identifiers are used for dynamic content or otherwise handled by client-side code. On these sites, the absence of an anchor tag with the fragment id is not necessarily an error.

Currently, linkcheck always reports these cases as warnings.
This PR introduces a --[no-]check-anchors flag to turn off reporting of missing anchors. By default it enables the reporting, but it offers users the option to turn these warnings off.

The --[no-]check-anchors flag turns off reporting of missing anchors at destination URLs. Defaults to on.
@filiph filiph self-requested a review October 6, 2020 23:49
@filiph
Copy link
Owner

filiph commented Oct 6, 2020

This looks great! Thank you!

@filiph filiph merged commit b806a87 into filiph:master Oct 6, 2020
@emielbeinema
Copy link
Contributor Author

Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants