linkspector
linkspector copied to clipboard
[BUG] Links to targets defined with `id` in same MD document reported as errors
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:
- Create a file with .md extension
- Add a line with
[Figure 1](#figure-1) - Add a line with
<span id="figure-1"/> - 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.