Skip to content

[BUG] Links to targets defined with id in same MD document reported as errors #119

@fmachadopiriz

Description

@fmachadopiriz

Describe the bug
In a Markdown file, with a tag defined by using <span id="figure-1"/>, the reference [Figure 1](#figure-1) is reported as Cannot find section: #figure-1. The link is working properly both in VSCode preview and GitHub.

To Reproduce
Steps to reproduce the behavior:

  1. Create a file with .md extension
  2. Add a line with [Figure 1](#figure-1)
  3. Add a line with <span id="figure-1"/>
  4. Run linkspector with default configuration

Expected behavior
The link in line 1 should not be reported as an error.

Additional information
This site has lot of examples with this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions