I use the following code from bookdown package tutorial in R markdown file:
```{r}
d1 <- head(cars, 3)
d2 <- head(mtcars[, 1:3], 5)
knitr::kable(
list(d1, d2),
caption = 'Two tables placed side by side.',
booktabs = TRUE, valign = 't'
)
```
Unlike the book, the code returns the result without space between two tables, like so.
In some questions I see the solutions with cat() function and some html injections.
(Also we need to set the option results = 'asis')
I wonder is there a more elegant and simple way to set some space between tables and preserve default html formatting at the same time?

