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

Anchor link check breaks when target heading comes before the link

Open matthandus opened this issue 9 months ago • 1 comments

Thank you for the recent improvements on anchor link checks. We noticed that the anchor link check will still return incorrect result and report dead link when the heading that is targeted comes before the anchor link in the document. When the anchor link is above the heading, it passes as expected.

Working sample

Here is an [anchor link](#heading-link-below) sample that passes, as expected.

### Heading link below

Broken sample

### Heading link above

Here is an [anchor link](#heading-link-above) sample that reports as a dead link.

matthandus avatar May 23 '24 21:05 matthandus