gaurav-nelson/github-action-markdown-link-check

Add the equivalent of a .gitignore for domain name

fharper opened this issue · 1 comments

Add the equivalent of a .gitignore for domain names. As an example, I know checking LinkedIn links with any link checker give an error 999, since you are not logged. I would like to be able to ignore all linkedin.com links in all markdowns by configuring this in a file or in the action itself. By doing that, I won't have to add the HTML comment to disable the links one by one in each file: easier, and makes cleaner markdown files.

You can do it by using the ignorePatterns in your configuration file.:

{
	"ignorePatterns": [
		    {
			  "pattern": "^https://www.linkedin.com.*"
		    }
	]
}