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

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

Open
locusclassicus opened this issue Jun 21, 2024 · 2 comments
Open

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

locusclassicus opened this issue Jun 21, 2024 · 2 comments

Comments

@locusclassicus
Copy link

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 <span style='color:blue;'> [invidia]{id='a'} </span> quidam, carissime Iuli...
 
```{r}
tippy::tippy_this(elementId = 'a', 
            tooltip = 'abl. causae', theme = 'light')
```
@JohnCoene
Copy link
Owner

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

@locusclassicus
Copy link
Author

Ok, thanks!

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

No branches or pull requests

2 participants