-
Notifications
You must be signed in to change notification settings - Fork 28
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
Match links to bookmarks #87
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First, a great package and thank you for making it available!
I am looking for a way to match a link to its bookmark - is that possible in principle? The below is an example of what I want to achieve.
I defined an annotation for the attribute
id
- that returns the location and the text of the bookmark, but not the actual id. So, it's not possible to know which bookmark has been identified.Also, when the
div
element doesn't have any text or sub-elements, the annotation doesn't return anything.Would I have to re-define the
div
tag handler (even though I don't know which tags may contain bookmarks)?Also, it seems that I cannot define any custom attribute handlers, other than the three already defined?
Many thanks!
The output is:
In this example, I am looking for the
id
of the lastdiv
element, as well as theid
, location and text of the thirddiv
element.(Note also that the text of the link doesn't include the opening
[
.)The text was updated successfully, but these errors were encountered: