uwdata / living-papers

Authoring tools for scholarly communication. Create interactive web pages or formal research papers from markdown source.
BSD 3-Clause "New" or "Revised" License
127 stars 10 forks source link

Implement Tooltip component #78

Closed AndrewZhang126 closed 1 year ago

AndrewZhang126 commented 1 year ago

Added a Tooltip component via tooltip.js that allows a more abstract and flexible implementation of tooltips. Other components can pass in the data and format they want to be displayed into the Tooltip and the Tooltip will handle the displaying, showing, and hiding of the tooltip on the page. Modified cite-ref.js to utilize this tooltip component for inline citations.

jheer commented 1 year ago

Thanks @AndrewZhang126! Based on your work, I've incorporated a tooltip component and more in #79.