title: Add both a title above and a note below a figure when knitting Rmarkdown to HTML
body: <p>I am knitting an Rmarkdown document to HTML with <code>bookdown::html_document2</code>. How can I include both a title above the figure and a note below the figure?</p>
  <p>For example, this code lets me produce a figure with a title above the figure. But how can I also include a note below the figure?</p>
  <p>To be clear, <em>I do not</em> want to include the note below the ggplot with <code>+ labs(caption = &quot;Text&quot;)</code>, I want to have the note in the same HTML style as the figure title above the figure.</p>
  <pre><code>---
  title: &quot;Reprex&quot;
  output: 
    bookdown::html_document2
  ---
  
  ```{r setup, include=FALSE}
  knitr::opts_chunk$set(fig.topcaption = TRUE) # Display figure title above the figure
  ```
  
  Figure \@ref(fig:figure) shows some results.
  
  ```{r figure, fig.cap=&quot;Figure Title (which I want above the figure)&quot;}
  library(tidyverse)
  mtcars %&gt;% 
    ggplot() +
    aes(x = wt, y = mpg) +
    geom_point()
  ```
  </code></pre>