-
Notifications
You must be signed in to change notification settings - Fork 23
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
TOC entries with no href
just title
#60
Comments
Another idea is that it takes the href without fragments.. somehow.. it's ambiguous... The resulting collection would look like this: "toc": [
{
"href": "appendix.xhtml",
"title": "Appendix",
"children": [
{
"href": "appendix.xhtml#a.1-birds",
"title": "A.1 Birds"
},
{
"href": "appendix.xhtml#a.2-turtles",
"title": "A.2 Turtles"
}
]
}
] |
On mobile platforms, we arbitrarily use "#". |
Yes, I felt somehow that at least it was a valid HREF, but it's not great. Maybe a blank string is better, I'm not sure.
I don't think that we can guarantee that all children are in the same resource though. |
Another option would be to drop this requirement for Link Objects listed in |
When looking at data from the EPUB context: The EPUB spec allows you to have navigation document headings be "link-less".
For example:
How would someone represent this data as a RWPM ToC compact subcollection?
Given that the items are
Link
objects that require anhref
attribute.My only idea right now is to have the href value be a blank string.
The resulting collection would look like this:
The text was updated successfully, but these errors were encountered: