brohlson / gatsby-plugin-anchor-links

⚓ Gatsby plugin for using smooth scroll anchor links with a Gatsby Link component
https://www.npmjs.com/package/gatsby-plugin-anchor-links
MIT License
68 stars 22 forks source link

Please mention it scrolls to element IDs in documentation #29

Closed bullett445 closed 3 years ago

bullett445 commented 3 years ago

Hi, took two hours of my life that this plugin doesn't scroll to a <a href='#anchor'></a> but to a e.g. <span id='anchor'></span>

It would be nice if you could mention that in the documentation.

Jan

nminchow commented 3 years ago

(I'm not sure what the policy is on closed issues)

This may be standard behavior for anchor navigation, but I think something to this effect may be nice to mention in the docs. I assumed IDs were the target, but was having an unrelated issue and was starting to question if I had made a bad assumption.