-
-
Notifications
You must be signed in to change notification settings - Fork 710
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
Bookmark label #1146
Bookmark label #1146
Conversation
box.string_set is a pointer and is updated automatically when parse_again() is called for page based counters and target-*. box.bookmark_label is just a string an we must copy it explicitly from the re-evaluated original boxes to the page's children.
To actually generate a bookmark-label the pseudo-element must not only have a .heading:before {
content: '';
bookmark-level: 1;
bookmark-label: 'A Heading';
} |
Remove duplicate bookmark-labes when pagination is finished. The box.element helps detecting them. Resolves Kozea#1145
@liZe Maybe there is a better way of removing the duplicates. Best thing would be not to create them at all in the first place, but I was unable to find that first place. |
There is something else not feeling quite right: div{
bookmark-level: 1;
bookmark-label: 'the main div';
}
div:before {
content: 'before ';
display:block;
bookmark-level: 1;
bookmark-label: 'before the div';
} The |
Having a pseudo-element called |
We have the same problem to remove the top border of a block on the second page when it’s split. There’s a I don’t know if it’s possible to do something like that for bookmarks. Otherwise, I can just merge this pull request, it’s already really good. |
Yes, please merge it (and close #1145) |
Incited by #1145 I started a research about how to implement bookmark-labels for the
:before
and:after
pseudo-elements and stumbled upon page counters and target counters not being updated in bookmark-labels at all.Of course, nobody ever will use page or target counters in her bookmark-labels...