JohnCoene / tippy

💬 Tippy.js for Shiny
http://tippy.john-coene.com/
Other
76 stars 2 forks source link

markdown formatting inside a tooltip (quarto document)? #34

Open locusclassicus opened 2 months ago

locusclassicus commented 2 months ago

I have a simple .qmd file which knits to an html. It contains some tooltips added with tippy package. Is there a way to use markdown formatting inside a tip (for example, italics or bold)?

---
title: 'final'
format: html
fontsize: '18pt'
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
library(tippy)

Rumpitur [invidia]{id='a'} quidam, carissime Iuli...

tippy::tippy_this(elementId = 'a', 
            tooltip = 'abl. causae', theme = 'light')
JohnCoene commented 2 months ago

I think you can pass HTML to the tooltip, e.g.: <strong>this is bold</strong>

locusclassicus commented 1 month ago

Ok, thanks!