linkspector icon indicating copy to clipboard operation
linkspector copied to clipboard

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

Open fmachadopiriz opened this issue 9 months ago • 0 comments

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.

fmachadopiriz avatar Apr 03 '25 18:04 fmachadopiriz