You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a\b.md is threated as file in . that has backslash in name, and that is correct (e.g. GitHub understand it this way). Windows users can write this meaning file b.md in dir a. I think we should write them something like '\' is not threated as path separator here, maybe you mean "a/b.md"? instead of just reporting a\b.md as unexisting file.
Inverse slashes in filenames are unsupported in Windows, but supported in Linux, so we shouldn't forbid them at all.
I suggest to write message about path separators only when there really is a file with such path (a/b.md in my example)
Acceptance criteria
If I write [foo](a\b.md) and file a/b.md exists, xrefcheck prints useful message
I still can use links to files with name like a\b.md
The text was updated successfully, but these errors were encountered:
I agree with the idea of the dedicated error message, but don't fully agree with throwing it only when the filepath is itself correct.
It makes a point, but what I worry about is: if I have a file both with \ and with a typo in filename, fixing that would require two check-edit iterations which some users will find unpleasant, and there is no actual need for this.
We could, for instance, report two different errors for such links.
Clarification and motivation
Currently
a\b.md
is threated as file in.
that has backslash in name, and that is correct (e.g. GitHub understand it this way). Windows users can write this meaning fileb.md
in dira
. I think we should write them something like'\' is not threated as path separator here, maybe you mean "a/b.md"?
instead of just reportinga\b.md
as unexisting file.Inverse slashes in filenames are unsupported in Windows, but supported in Linux, so we shouldn't forbid them at all.
I suggest to write message about path separators only when there really is a file with such path (
a/b.md
in my example)Acceptance criteria
[foo](a\b.md)
and filea/b.md
exists, xrefcheck prints useful messagea\b.md
The text was updated successfully, but these errors were encountered: