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

Anchor checking fails when the close of a fence block is indented more than the open

Open dagardner-nv opened this issue 7 months ago • 4 comments

The issue happens when the heading follows fenced code block where the closing back-ticks are indented more than the opening of the code block and the next section contains a properly formatted fence block.

I'm not sure if this is valid markdown or not. If it is invalid a parsing error would be nice.

Repro: test.md

$ markdown-link-check --version
3.13.7
$ markdown-link-check  test.md

FILE: test.md
  [✓] #working-anchor
  [✖] #broken-anchor

  2 links checked.

  ERROR: 1 dead links found!
  [✖] #broken-anchor → Status: 404

dagardner-nv avatar May 15 '25 17:05 dagardner-nv

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

github-actions[bot] avatar Aug 14 '25 08:08 github-actions[bot]

This is still an issue

dagardner-nv avatar Aug 14 '25 16:08 dagardner-nv

I experienced a similar issue with inline HTML.

Adding a <br> tag to one section broke the link checker.

dfl-aeb avatar Oct 14 '25 06:10 dfl-aeb

I experienced a similar issue with inline HTML.

Adding a <br> tag to one section broke the link checker.

Many thanks for the report. Can you please provide a full example input? @dfl-aeb

BaseMax avatar Oct 19 '25 19:10 BaseMax