Only first 30 or so anchors in markdown are scrolled to automatically when viewed using blob URL

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Links in markdown files are not scrolled to automatically when viewed using a URL containing "blob" (but are when viewed using a URL containing "tree").

For example, this URL does not scroll to the correct link

https://gitlab.com/graememoss/bugs/-/blob/main/badanchors/BadAnchors.md#link81

but this link does

https://gitlab.com/graememoss/bugs/-/tree/main/badanchors#link81

even though it is the same file (renamed to README.md so we can use the "tree" viewer).

Note also that the first 30 or so links work fine, so

https://gitlab.com/graememoss/bugs/-/blob/main/badanchors/BadAnchors.md#link29

does scroll automatically, but

https://gitlab.com/graememoss/bugs/-/blob/main/badanchors/BadAnchors.md#link30

does not.

Edited by 🤖 GitLab Bot 🤖