How to keep figure captions in R Markdown when fig.retina is not 1
问题 I'm having trouble with figure captions in html documents generated using R Markdown. If I don't specify the fig.retina option, or if I set it to 1, the output document has a figure caption. If I set it to a value that isn't 1, however, the future caption is missing but the text for it is present as the alt text for the figure. How can I keep the figure captions? An example: --- title: "Example" output: html_document: fig_caption: yes fig_retina: 2 --- Text text text ```{r fig.cap="Figure 1.