Skip to content
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

Feature: add csl entry content as title (tooltip) #56

Closed
harleylara opened this issue Mar 9, 2025 · 1 comment · Fixed by #57
Closed

Feature: add csl entry content as title (tooltip) #56

harleylara opened this issue Mar 9, 2025 · 1 comment · Fixed by #57

Comments

@harleylara
Copy link

Hi @timlrx , First of all I really love this plugin, thank you for its creation 😁

I have the idea that It would be awesome to add the content of the csl-entry as a tooltip (title) to each citation. If I position the mouse over the citation (whether it is a link or not) I can visualize the content of it.

Sometime like this:

Image

Note: this is the result of a 50 line plugin that I build on top of it, but I thought it would be better to include this functionality directly in this plugin, what do you think about it?.

@harleylara harleylara changed the title Feature: add csl entry content as title Feature: add csl entry content as title (tooltip) Mar 9, 2025
@timlrx
Copy link
Owner

timlrx commented Mar 29, 2025

Checkout the new tooltip feature - https://rehype-citation.netlify.app/tooltips. It was slightly more complicated than I initially imagined since the entry could potentially be dependent on the preceding bibliography entries. I have also allowed the user to specify an attribute if they don't want to use title for it. This makes it easy to style it with CSS as in the linked example.

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

Successfully merging a pull request may close this issue.

2 participants