Skip to content

anchor link checks should support <a name="foo"></a> #202

New issue

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

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

Already on GitHub? Sign in to your account

Open
z1c0 opened this issue May 3, 2022 · 2 comments
Open

anchor link checks should support <a name="foo"></a> #202

z1c0 opened this issue May 3, 2022 · 2 comments

Comments

@z1c0
Copy link

z1c0 commented May 3, 2022

With the recently introduced anchor link check (which is great btw!) I encounter frequent errors when using explicit HTML-like anchors.

e.g.

...
Take me to [pookie](#pookie)
...
<a name="pookie"></a>
...
@nschonni
Copy link
Contributor

nschonni commented May 3, 2022

Duplicate of #195

@per1234
Copy link

per1234 commented Apr 11, 2025

This has been resolved (I assume by 0348390 / #331, but can't precisely bisect due to #368).

$ printf 'Take me to [pookie](#pookie)\n\n<a name="pookie"></a>\n' > /tmp/foo.md

$ npx github:tcort/markdown-link-check#29694c8 /tmp/foo.md  # Last usable bad commit.

FILE: C:/Users/per/AppData/Local/Temp/foo.md
  [✖] #pookie

  1 links checked.

  ERROR: 1 dead links found!
  [✖] #pookie → Status: 404

$ npx github:tcort/markdown-link-check#834a4e2 /tmp/foo.md  # First usable good commit.

FILE: C:/Users/per/AppData/Local/Temp/foo.md
  [✓] #pookie

  1 links checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants