Is it possible to create tooltips manually for any random text, similar to the use of bold, italic etc? #5225
-
I would like to add tooltips to certain bits of text to display additional information. Tooltips in quarto seems to be automatically created for citations and footnotes. Is it possible to create tooltips manually for any random text, similar to the use of bold, italic etc? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Tooltip is a HTML feature. Note that, for something "similar" to bold/italics/etc. I suggest you create a shortcode Quarto extension, see https://quarto.org/docs/extensions/shortcodes.html. Edit: you could also use the NutShell Quarto extension, see https://github.com/schochastics/quarto-nutshell. |
Beta Was this translation helpful? Give feedback.
Tooltip is a HTML feature.
Quarto is using Bootstrap (https://getbootstrap.com/docs/5.2/components/tooltips/).
You can find many examples on the Internet that you can adapt to your needs.
Note that, for something "similar" to bold/italics/etc. I suggest you create a shortcode Quarto extension, see https://quarto.org/docs/extensions/shortcodes.html.
Edit: you could also use the NutShell Quarto extension, see https://github.com/schochastics/quarto-nutshell.