markdown-link-check icon indicating copy to clipboard operation
markdown-link-check copied to clipboard

Implement failPatterns

Open entscheidungsproblem opened this issue 3 years ago • 0 comments

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

entscheidungsproblem avatar Sep 21 '22 02:09 entscheidungsproblem