Skip to content

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

@dagardner-nv

Description

@dagardner-nv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions