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

Does not work properly in a post with page breaks #4

Open
ko31 opened this issue Oct 5, 2024 · 0 comments
Open

Does not work properly in a post with page breaks #4

ko31 opened this issue Oct 5, 2024 · 0 comments

Comments

@ko31
Copy link

ko31 commented Oct 5, 2024

Expected behavior

I feel like it would be better that a table of contents contains only the headings included in the current page.

Actual behavior

Generated table of contents do not seem to work properly in a post with page breaks.

Steps to reproduce

Create a post with some heading sections and a page break.

sample-post

When viewing the first page of this post, the anchor links in the headings contained in the following pages do not work.

sample-p1

Also, viewing the next page, the headings on the previous page are included in the table of contents, so these anchor links seem to get out of order.

sample-p2

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

No branches or pull requests

1 participant