Scrum / remark-lint-double-link

remark plugin lint double link
MIT License
2 stars 2 forks source link

Issues with path relative URLs starting with ./ #11

Open zmre opened 3 months ago

zmre commented 3 months ago

Using the awesome-lint tool, I was getting an issue about an invalid URL on the first line of my README, which only had the standard awesome badge:

  README.md:1:1
  ✖  1:1  Invalid URL                                         remark-lint:double-link

The culprit turned out to be in the last line of the file where I had this:

Please carefully read the [guidelines for contributing in the `contributing.md`](./contributing.md) file in this repo.

Removing the ./ in front of contributing.md fixed the problem. This was pretty annoying and might bite someone else. If it just reported the correct line of the invalid URL I might have figured out what it didn't like. And for the record, this is a valid URL.

I first reported this at awesome-lint and was steered here: https://github.com/sindresorhus/awesome-lint/issues/196

Scrum commented 3 months ago

@zmre Hi, thanks for the find, I'll try to figure it out.