I want my Quarto document to do different things depending on if I render to html or pdf:
- For html output I want to display an iframe (containing an interactive observable widget)
- For pdf output I want instead to display an image that is clickable and leads to a website.
I want to be able to render to both formats automatically from the same quarto file, so I must add this programmatically in the quarto file.
Is this possible?
Thanks!