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
With MkDocs 1.6 and validation: anchors: warn, I had this warning:
WARNING - Doc file 'github.md' contains a link 'tutorial.md#Conflicts', but the doc 'tutorial.md' does not contain an anchor '#Conflicts'.
while tutorial.md did contain a subheading:
...
## Conflicts
...
Changing the anchor in tutorial.md from tutorial.md#Conflicts to tutorial.md#conflicts fixed the issue. However, I think MkDocs should have compared the anchors case-insensitively form the beginning. the warning was confusing.
Cc the similar #3690, but this bug has a smaller scope and has nothing to do with extensions.
Thank you very much for adding this feature!
The text was updated successfully, but these errors were encountered:
Alternatively, if case sensitivity is expected, please consider changing the warning to emphasize that it's case-sensitive, at least if there is a heading that matches case-insensitively. I was confused for quite a bit.
Good point! VS Code was not case sensitive, so I didn't realize.
I'll change the title to make this into a feature request to adjust the warning.
ilyagr
changed the title
Anchor validation should be case insensitive
FR: Anchor validation warning should remind the user it's case sensitive, especially if there are case-insensitive matches.
May 12, 2024
ilyagr
added a commit
to martinvonz/jj
that referenced
this issue
May 14, 2024
With MkDocs 1.6 and
validation: anchors: warn
, I had this warning:while
tutorial.md
did contain a subheading:... ## Conflicts ...
Changing the anchor in
tutorial.md
fromtutorial.md#Conflicts
totutorial.md#conflicts
fixed the issue. However,I think MkDocs should have compared the anchors case-insensitively form the beginning.the warning was confusing.Cc the similar #3690, but this bug has a smaller scope and has nothing to do with extensions.
Thank you very much for adding this feature!
The text was updated successfully, but these errors were encountered: