becheran / mlc

Check for broken links in markup files
MIT License
129 stars 17 forks source link

Support for ignore link list from a file #51

Closed diegorondini closed 1 year ago

diegorondini commented 2 years ago

Is your feature request related to a problem? Please describe. At the moment the links to ignore are provided as option parameters on the command line:

mlc -i '<mylinktoignore>'

This is inconvenient if mlc is run during a pipeline, as adding / removing a link to ignore requires changing the pipeline config file.

Describe the solution you'd like Allow to specify a file that provides the list of links to ignore. This would allow to just edit the file to change the list of links to ignore, like when you edit .gitignore to specify the files / dirs that should be ignored by git.

becheran commented 2 years ago

Sounds reasonable. I will think about it. Maybe even more general such as a mlc config file which does include the ignored link list.

diegorondini commented 2 years ago

Yes, that sounds like a sensible idea, and matches what others similar projects are doing: https://github.com/tcort/markdown-link-check#config-file-format

diegorondini commented 1 year ago

Thanks for implementing this!