Add rule to enforce links as reference links
See original GitHub issueAs default deactivated. If active, raise error here:
I'm a paragraph with [a link](http://link-to-somewhere)
…but passes this:
I'm a paragraph with [a link][link-to-somewhere]
[link-to-somewhere]: http://link-to-somewhere
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Links - Usability & Web Accessibility - Yale University
Hidden Link Text As a general rule, link text alone should be enough to convey the purpose of the link. But, some visual...
Read more >HTML Anchors: Here's How To Create Links For Fast ...
Learn how to create HTML hyperlinks. This guide covers the anchor element and all of it's attributes.
Read more >Add rule(s) to enforce certain link rules · Issue #68 - GitHub
Add rules to detect and error when found: No http links,; No links include text from a set of given regexes,; No relative...
Read more >Create a cross-reference - Microsoft Support
Insert the cross-reference In the Reference type box, click the drop-down list to pick what you want to link to. The list of...
Read more ><a>: The Anchor element - HTML: HyperText Markup Language
Content within each <a> should indicate the link's destination. ... To create links that open in the user's email program to let them...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It would also be nice if this was configurable by the length of the URL — i.e. non-reference links shorter than N characters would not trigger this rule, with the default max length being 0.
CommonMark deviates from this and says it is optional but it is mentioned explicitly in the original Daring Fireball docs: