New to Markdown so trying to navigate. I'm using bookdown. I'm trying to work out how to insert an image and but cite it prior to the code.
What I'd like:
Blablabla (Figure 1). Blablabla bla.
FIGURE.
Caption: Figure 1.
I'm currently doing:

```{r}
fig_nums <- captioner()
fig_nums("Cholesterol Metabolism", "CAPTION FOR FIG 1")
```
And to cross reference the figure I have
(r fig_nums("Cholesterol Metabolism", display = "cite"))
But how can I cross reference before the figure?
Am I also right in thinking that this method will let me insert figures throughout and it will automatically change the number as I go along? So, say I place a figure before the existing Figure 1, it will re-number that figure to Figure 2.
Thank you!
