markdown-link-check icon indicating copy to clipboard operation
markdown-link-check copied to clipboard

Improper relative path parsing, URLs parsed as Markdown

Open MiYanni opened this issue 3 years ago • 2 comments

The URLs provided are:

..\..\build\import\Versions.props
..\..\version.json

The link checker shows these as an error:

FILE: ./.github/ISSUE_TEMPLATE/branch-checklist.md
[✖] ....\build\import\Versions.props
[✖] ....\version.json

ERROR: 2 dead links found!
[✖] ....\build\import\Versions.props → Status: 400
[✖] ....\version.json → Status: 400

As you can see, the backslash \ is gone. I wondered if this was just a rendering issue in the log. It was not. If I change the URLs to this, they pass.

..\\..\build\import\Versions.props
..\\..\version.json

This escapes (in Markdown) that backslash and now the URLs pass. This should not be necessary as URLs should not be parsed as Markdown in this way.

If I write the original paths not using a Code block in this issue description, you can see they render the same as shown in the log. This leads me to believe they are parsed improperly as Markdown.

....\build\import\Versions.props ....\version.json

MiYanni avatar Jul 16 '22 00:07 MiYanni