-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lint to prevent (most) URLs #104
Comments
Hi @SamWilsn i want to work on this. Kindly assign me to this issue |
Go for it! |
i should add this lint functionality in the "lints/markdown" folder right? @SamWilsn |
Yep! And if you wouldn't mind adding a row to the readme, and an HTML file in the docs folder, I'd appreciate it! |
okay so, basically what i am meant to do are:
Is this well stated?. |
This should be a separate lint from So the full scope of work is:
Hopefully I haven't missed anything! |
i understand it better now. Thanks |
I've added a bit more detail to the initial issue. Hopefully that makes it more clear! |
Summary
Many authors attempt to bypass
markdown-rel-links
by putting their URL in backticks:We should add a lint to make sure that all HTTP(S) URLs that are not hyperlinked (so in code fences, backticks, plain text, etc.) use example domains. Specifically, the following (and any subdomains thereof) would be allowed:
example
example.com
example.net
example.org
invalid
test
Examples
Disallowed
The following snippets should trigger this lint:
Here is an unhyperlinked link http://google.com
Allowed
While the following should not trigger this lint:
The text was updated successfully, but these errors were encountered: