title: reference a markdown table in R markdown
body: <p>My question is how to reference tables in markdown format like the following because the answer here doesn't work
  <a href="https://stackoverflow.com/questions/36723514/referencing-a-hand-made-table-using-bookdown-package#comment102892470_36759697">Referencing a &#39;hand-made&#39; table using bookdown package</a>
  I tried </p>
  
  <pre><code>---
  output: html_document
  ---
  
  you may refer to this table using \@ref(tab:foo)
  
  Table: (\#tab:foo) Your table caption.
  
  +-----------------------+-----------------------+-----------------------+
  | Auteur                | Protocole             | Résultats             |
  +=======================+=======================+=======================+
  | (Jiayi 2011)          | Analyse formantique   | Diphtongaison de [e  |
  +-----------------------+-----------------------+-----------------------+
  </code></pre>
  
  <p>and it didn't work. </p>
  
  <p>it gives "Table : (#tab:foo) Your table caption." as the caption and "you may refer to this table using @ref(tab:foo)" If I cross reference using @ref(tab:foo). </p>
  
  <p>Is it possible also to have automatic numbering ?</p>