allenai/pdf-component-library

Bug: TOC redirects to page instead of the sections

Closed this issue · 4 comments

Bug: TOC redirects to page instead of the sections

Progress note:
Currently, it cannot be solved simply by using the Outline component provided by react-pdf. To scroll to a specific title location, a paper needs dest information of the title, but the Outline component only passes pageNumber and pageIndex arguments to click handler functions. There is an ongoing PR for this issue, but it has been created for 5 months and the author hasn't merged it for some reason. I am gonna create our own Outline components to achieve this feature.

adding unit tests

Related PR: #83