Weird #tab character when using `kable`

rmarkdown

#1

Hello,

I am using kable and I have this weird #tab showing up before my caption.
How can I get rid of it?

> 
>  kable(format = 'latex', cars, booktabs=T, caption="cars")
> \begin{table}
> 
> \caption{(\#tab:)cars}
> \centering
> \begin{tabular}[t]{rr}
> \toprule
> speed & dist\\

Thanks!


#2

#3

#4

#5

That's weird. I get:

> kable(format = 'latex', cars, booktabs=T, caption="cars")
\begin{table}

\caption{\label{tab:}cars}

Could you check your R and knitr versions?