owenh000 / asciidoctor-multipage

A configurable multipage HTML converter for Asciidoctor
https://owenh.net/asciidoctor-multipage
MIT License
58 stars 23 forks source link

Automatically scroll table of contents so entry for current page is in view #47

Open diguage opened 3 weeks ago

diguage commented 3 weeks ago

A feature suggestion:

When opening a page, locate the content on that page and display the content link of this page on the screen.

If a document content is very long, open a later page, and the content link of this page is not displayed on the screen.

owenh000 commented 3 weeks ago

Hi @diguage, please describe your suggested feature more thoroughly, perhaps with some kind of example.

diguage commented 2 weeks ago

@owenh000

The default content

image

The ideal content

image

owenh000 commented 2 weeks ago

Okay. Thanks for the example. If I understand correctly, you are suggesting the following feature:

"Automatically scroll the table of contents so the entry to the current page is in view (scroll so entry is in center of view, ideally)."