UmbrellaDocs / linkspector

Uncover broken links in your content.
Apache License 2.0
63 stars 9 forks source link

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

Closed clabornd closed 3 months ago

clabornd commented 3 months ago

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 commented 3 months ago

Thanks for the quick fix!