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 • 6 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

This issue has been marked as stale because it has been open 60 days with no activity. It will be closed in 30 days unless the stale label is removed or someone adds a comment.

github-actions[bot] avatar Apr 12 '25 08:04 github-actions[bot]

Bump.

MiYanni avatar Apr 15 '25 19:04 MiYanni

This issue has been marked as stale because it has been open 60 days with no activity. It will be closed in 30 days unless the stale label is removed or someone adds a comment.

github-actions[bot] avatar Jun 18 '25 08:06 github-actions[bot]

Bump.

MiYanni avatar Jun 24 '25 22:06 MiYanni

This issue has been marked as stale because it has been open 60 days with no activity. It will be closed in 90 days unless the stale label is removed or someone adds a comment.

github-actions[bot] avatar Sep 24 '25 08:09 github-actions[bot]

Bump for owners to check if this issue was resolved.

MiYanni avatar Sep 25 '25 16:09 MiYanni