question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New rule suggestion: detect link that point to nothing

See original GitHub issue

Example:

[link][bad-link]

[good-link]: https://google.com

Currently this does not produce an error.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:11
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
stuartpbcommented, May 21, 2019

This should be broken into a couple of separate rules:

  • Links that reference non-existent names (complaining about [bad-link]), which is unambiguously bad
  • Named links with no existing references (complaining about [good-link]), which can be harmless
0reactions
DavidAnsoncommented, Aug 10, 2020

@lorenzleutgeb This seems reasonable to do as two different rules. You might also see if this behavior makes sense to fold into one of them: https://github.com/DavidAnson/markdownlint/issues/213. (I checked the other link-related issues and they do not seem relevant.) If you’d like early and regular feedback, I’m happy to look over draft PR’s as you make progress. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Evolving "nofollow" – new ways to identify the nature of links
Links contain valuable information that can help us improve search, such as how the words within links describe content they point at.
Read more >
Understanding SC 2.4.4:Link Purpose (In Context) (Level A)
In this case the user should be able to identify the purpose of the link without moving focus from the link. In other...
Read more >
Links - Usability & Web Accessibility - Yale University
As a general rule, link text alone should be enough to convey the purpose of the link. But, some visual designs do not...
Read more >
<a>: The Anchor element - HTML: HyperText Markup Language
External links and linking to non-HTML resources. Links that open in a new tab/window via target="_blank" , or links that point to a...
Read more >
Instagram Bio Link Not Working? New Solutions for 2022
Select Broadband (Ethernet) under Rule Name. Go to Settings. Click on Renew > Release > Apply. Now check if Instagram Link not allowed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found