andras-simonyi / citeproc-el

A CSL 1.0.2 Citation Processor for Emacs.
GNU General Public License v3.0
85 stars 9 forks source link

In HTML export, add reference text to link "title" attribute #25

Open bdarcus opened 3 years ago

bdarcus commented 3 years ago

So that one can hover over link and see the reference data, as in latex pdf.

andras-simonyi commented 3 years ago

Could you give a concrete example of the HTML markup to be generated?

bdarcus commented 3 years ago

Sure:

<a href="#target" title="foo bar">foo bar</a>

I suppose javascript could do similar; not sure.

But it seems like an easy and obvious addition; hence the suggestion.

andras-simonyi commented 3 years ago

And what would be the exact value of the title attribute? The whole bibliography item in plain text form?

bdarcus commented 3 years ago

I think so, or perhaps some truncated version?

bdarcus commented 3 years ago

I just tested this, on Firefox. Looks fine without truncatation?

Screenshot from 2021-06-05 07-18-26