Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

IDs point to the hidden document #86

Open
danielepolencic opened this issue Dec 19, 2020 · 1 comment
Open

IDs point to the hidden document #86

danielepolencic opened this issue Dec 19, 2020 · 1 comment

Comments

@danielepolencic
Copy link
Contributor

danielepolencic commented Dec 19, 2020

The original document is hidden on the page.
When the content is formatted, it is cloned. Unfortunately, all IDs are cloned too.
This breaks the anchors in the document (particularly when using a Table of Contents).

@evnbr
Copy link
Owner

evnbr commented Dec 21, 2020

Assuming you mean clicking a link to that anchor to scroll to it— if not let me know what the intended behavior is.

Bindery is definitely optimizing more for print/export than interaction with the viewer, but this does seem fixable, if bindery just completely removed the original content from the DOM.

Just to confirm, you are specifyinh content: selector in the options, right? Not sure if it's a valid workaround but I would expect this issue not to repro if you were loading the content remotely, ie with content: { url, selector }.

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

No branches or pull requests

2 participants