markdown-link-check
markdown-link-check copied to clipboard
Implement failPatterns
It would be useful to have another config option, failPatterns to mark any matching links as a failure (without checking the status) to reject any unwanted or malicious websites.
For config.json:
{
"failPatterns": [
{
"pattern": "^https://unwanted-site.com"
}
]
}
If it was found in a .md file:
ERROR: 1 dead links found!
[✖] https://unwanted-site.com → Status: 0