DavidAnson / markdownlint

A Node.js style checker and lint tool for Markdown/CommonMark files.
MIT License
4.73k stars 718 forks source link

Add rule to check relative links #586

Closed koenigst closed 1 year ago

koenigst commented 1 year ago

Use case

Example

Files:

contributing.md
image.png
readme.md

Content readme.md:

# Heading
![image](image.png)
[link to anchor](contributing.md#Heading)

Details

The logic for discovering relative files could be similar to textlint-rule-no-dead-link.

vorburger commented 1 year ago

121 seems related to / a duplicate of this? (TL;DR https://github.com/Divlo/markdownlint-rule-relative-links is a plugin, and https://github.com/tcort/markdown-link-check/ a separate alternative.)

DavidAnson commented 1 year ago

Agree, I will close this. Please add any missing details to that issue.