-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add --exclude-link-text=unavailable option? #101
Comments
I think you can already use |
Yes, that works fine. But I want to target the link text, not the link. Perhaps check my example again? :-) |
... or do you mean that |
No, you can't target the link text currently, do that would be a prospective new feature. |
Thanks for clarifying. Do you think it would be worth considering adding such a feature? A pretty good argument and use case for it, is if you have hundreds of links, which you need to keep as reference, though the target link no longer exist. These links don't need to get checked, and in a sense give false positives. |
Possibly, but it fits into the category of filtering, could also support CSS selectors (?) or XPath to capture all scenarios. |
Also adding support CSS selectors or XPaths as filters, on top of the link text would expand the flexibility, so that would be nice as well. So something like adding both |
Yes, you could filter on any link property with |
In some cases, you need to keep a link, even though it is broken, and perhaps add "(unavailable)" to the link text, like this: link text (unavailable).
However, you don't want this known dead link to get checked, so it would be great with an option like
--exclude-link=unavailable
, which skips links with link texts containing this string. Is this possible?The text was updated successfully, but these errors were encountered: