Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] Anchors made with <a> tags give false positives #69

Closed
clabornd opened this issue Jun 26, 2024 · 1 comment · Fixed by #70
Closed

[BUG] Anchors made with <a> tags give false positives #69

clabornd opened this issue Jun 26, 2024 · 1 comment · Fixed by #70
Labels
bug Something isn't working

Comments

@clabornd
Copy link

Describe the bug
Consider this simple test.md file:

Here is a tag <a name="ref1"></a>

Here is a link to that tag: [link](#ref1)

linkspector check throws:

🚫 testmd.md, #ref1 , 404, 3, Cannot find section: #ref1 in file: testmd.md.
💥 Error: Some hyperlinks in the specified files are invalid.

Links like this work when published, not sure if this is expected behavior.

@clabornd
Copy link
Author

Thanks for the quick fix!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant