and file.html exists and is part of the project, and #anchor is not a valid anchor for that file, it should raise a warning in the build.
Alternately, it would be nice if linkcheck checked anchors for relative links.
The problem is that I'm using recommonmark, which doesn't support cross-referencing. I'm perfectly fine writing out the anchors manually (believe me, it's worth it to support formatted text in links), but it would be nice to have some checking. Right now, I have been using the W3C validator on my site after it has been published to check for invalid anchors.
If I have something like
and file.html exists and is part of the project, and #anchor is not a valid anchor for that file, it should raise a warning in the build.
Alternately, it would be nice if
linkcheck
checked anchors for relative links.The problem is that I'm using recommonmark, which doesn't support cross-referencing. I'm perfectly fine writing out the anchors manually (believe me, it's worth it to support formatted text in links), but it would be nice to have some checking. Right now, I have been using the W3C validator on my site after it has been published to check for invalid anchors.