egoist / docup

The easiest way to write beautiful docs.
https://docup.egoist.dev
MIT License
703 stars 32 forks source link

Scrolling up from bottom doesn't update hash #16

Open estevanmaito opened 4 years ago

estevanmaito commented 4 years ago

It's probably related to the headings being used as targets https://github.com/egoist/docup/blob/master/src/components/App.tsx#L13

Wrapping the sections with an element like a div could solve these issues.

Nice project btw 🎉

egoist commented 4 years ago

Maybe we can also check block elements like ul p and find the closest h* tag while scrolling up from bottom.