{"repo":"textlint-rule/textlint-rule-no-dead-link","free":true,"listed":false,"github":"https://github.com/textlint-rule/textlint-rule-no-dead-link","clone":"git clone https://github.com/textlint-rule/textlint-rule-no-dead-link.git","description":"textlint rule to check if all links are alive.","language":"TypeScript","stars":31,"topics":["textlint","textlint-rule","markdown"],"license":null,"category":"productivity","readme_excerpt":"textlint-rule-no-dead-link textlint rule to make sure every link in a document is available. The primary target of this rule is Markdown documents, but it also works on plain text documents (See tests). Installation Usage Features Dead Link Detection Shows an error if a link is dead (i.e. its server returns one of the \"non-ok\" responses). Obsolete Link Detection Shows an error if a link is obsolete or moved to another location (i.e. its server returns one of the \"redirect\" responses). This error is fixable and textlint will automatically replace the obsolete links with their new ones if you run it with --fix option. Relative Link Resolution Sometimes your files contain relative URIs, which don't have domain information in an URI string. In this case, we have to somehow resolve the relative URIs and convert them into absolute URIs. The resolution strategy is as follows: 1. If baseURI is specified, use that path to resolve relative URIs (See the below section for details). 2. If not, try to get the path of the file being linted and use its parent folder as the base path. 3. If that's not available (e.g., when you are performing linting from API), put an error Unable to resolve the relative URI . Options Please write your configurations in .textlintrc . The default options are: checkRelative This rule checks the availability of relative URIs by default. You can turn off the checks by passing false to this option. baseURI The base URI to be used for resolving relative URIs. Thoug","default_branch":null,"files":null,"tree":[],"storefront":"/r/textlint-rule","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/textlint-rule/textlint-rule-no-dead-link/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}