-
Is it possible to have a linked figure (i.e., a figure linking to an external site if you click it) with a figure caption that also contains an external link? How could I achieve that? I tried the following approaches, but they did not give the expected result: Approach 1: In this approach, the linked figure works, but the link in the caption shows as follows: Approach 2: In this second approach, the linked figure works, and the link in the caption shows as a link. However, the link in the caption does not link to the external page, but to itself (= the page on which the link stands). Do you have any idea how I could make this work? Thank you very much in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
You need to use a fenced div (see https://quarto.org/docs/authoring/figures.html#figure-divs) which is better for long caption in my opinion. ---
format: html
---
::: {#fig-elephant}
[](https://en.wikipedia.org/wiki/Elephant)
This caption includes a link to [a webpage](https://en.wikipedia.org/wiki/Elephant). Also, click the image to try out the application.
::: |
Beta Was this translation helpful? Give feedback.
You need to use a fenced div (see https://quarto.org/docs/authoring/figures.html#figure-divs) which is better for long caption in my opinion.