markdown-link-check
markdown-link-check copied to clipboard
Add stop/break option in `replacementPatterns`?
Currently, the replacement patterns are applied one by one. Sometimes, we may want to stop when one of them is executed.
Would you like to have an option to enable that behaviour, and keep the current behaviour as the default one?
Behaviour would be :
for each link in the file, do:
for each replacement pattern in the config, sorted in config order, do:
check the link against the pattern:
if matches and "stop after first matched pattern" option is true => go to next link
if no match, try with the next pattern
...
yes, an option is good