markdownlint
markdownlint copied to clipboard
Add rule(s) to enforce certain link rules
Add rules to detect and error when found:
- No
httplinks, - No links include text from a set of given regexes,
- No relative links, such as
../path,path. Only allow absolute links, such as/path.
Note: this is similar to those that would be found when crawling a site. However, it is best when caught earlier in the process with markdownlint.
Based on your scenarios, a single rule that runs a user-configurable RegExp against the link destination seems sufficient.
Yes, that would be sufficient!
Another use case: https://github.com/webhintio/hint/issues/4137.