Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vertical offset option for outline module #3764

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hermaba-uio
Copy link

@hermaba-uio hermaba-uio commented Sep 4, 2024

Currently the outline module only supports linking to the top of a page.
It is often desirable to have the table of contents link to not only a page, but a specific location on the page, ex. to the start of a specific chapter or sub heading.
This PR adds an option (pageOffsetY) to the outline.add function options, which offsets the linked location from the top of the given page by the given number of units.

Relevant issue: #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant