Referencing a 'hand-made' table using bookdown package
I am trying to reference a table using the bookdown package. In the documentation the author only shows how to create tables using knitr::kable . ```{r table1} knitr::kable( head(iris, 20), caption = 'Here is a nice table!', booktabs = TRUE ) ``` Table \@ref(tab:table1) is here. Using knitr::kable works just fine. The caption of the table is displayed and I can reference the table. I would like to do the same with a classic hand-made markdown table but obviously the code below fails. What can I do to get a similar result as with the code above? ```{r table2, echo=FALSE, results='asis'} cat('|