markdown-link-check icon indicating copy to clipboard operation
markdown-link-check copied to clipboard

checks for anchor with consequent whitespaces fail in 3.12.2

Open lmolkova opened this issue 1 year ago • 3 comments

Passes in 3.11.2 and fails in 3.12.2:

  1. Whitespaces separated by special characters (no workaround)

    [migrating from <= v1.18.0](#migrating-from--v1180)
    
    ### Migrating from `<= v1.18.0`
    

    Changing to #migrating-from-v1180 passes markdown-lint-check, but it breaks navigation in VSCode and other link checkers (e.g. table of content).

  2. Consequent whitespaces typo (easy to workaround)

    [Client/server examples using `network.peer.*`](#clientserver-examples-using--networkpeer)
    
    ##### Client/server examples using  `network.peer.*`
    

Could be related to similar issues: #348, #337

lmolkova avatar Aug 19 '24 19:08 lmolkova

We use megalinter to run markdown-link-check on our PRs and our markdown files have TOCs generated via the markdown all in one vscode extension.

Having updated megalinter recently this bug has started to cause a lot of unnecessary noise about broken links that are not broken - with no sensible way of silencing them

chris-grabcad avatar Oct 02 '24 13:10 chris-grabcad

This issue has been marked as stale because it has been open 60 days with no activity. It will be closed in 30 days unless the stale label is removed or someone adds a comment.

github-actions[bot] avatar Apr 08 '25 08:04 github-actions[bot]

This was fixed by b2beaa0 (https://github.com/tcort/markdown-link-check/pull/328).

$ printf '[link to heading with special character](#has--special-character)\n\n## Has > Special Character\n\n[link to heading with consecutive spaces](#has--consecutive-spaces)\n\n## Has  Consecutive Spaces' > /tmp/foo.md

$ npx github:tcort/markdown-link-check#3c31a25 /tmp/foo.md  # Last bad commit.

FILE: C:/Users/per/AppData/Local/Temp/foo.md
  [✖] #has--special-character
  [✖] #has--consecutive-spaces

  2 links checked.

  ERROR: 2 dead links found!
  [✖] #has--special-character → Status: 404
  [✖] #has--consecutive-spaces → Status: 404

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

FILE: C:/Users/per/AppData/Local/Temp/foo.md
  [✓] #has--special-character
  [✓] #has--consecutive-spaces

  2 links checked.

per1234 avatar Apr 09 '25 07:04 per1234

This issue has been marked as stale because it has been open 60 days with no activity. It will be closed in 30 days unless the stale label is removed or someone adds a comment.

github-actions[bot] avatar Jun 16 '25 08:06 github-actions[bot]

This issue was closed because it has been marked as stale for 90 days with no activity.

github-actions[bot] avatar Sep 15 '25 08:09 github-actions[bot]