RStudio does NOT display image when caption has citation

RMarkdown supports the following syntax for images:

![This is the caption](/url/of/image.png)

Also, RMarkdown supports the following syntax for citation:

Blah blah [@smith04; @doe99].

We can combine the two and

![Blah blah [@smith04; @doe99].](/url/of/image.png)

is valid.

RStudio will inject/display the image for

![This is the caption](/url/of/image.png)

but it will not for

![Blah blah [@smith04; @doe99].](/url/of/image.png)

The next video illustrates this bug. RStudio will inject the image after complete the syntax for the image and the image will be removed when the citation is added.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.