I am fairly new to Hugo (academic). I am building using R Markdown. In my .rmd file, I produce a table and print this with
kable, with position set to center. This works in a normal .rmd file, but my table remains left aligned in the served site. Any ideas how I can centre align the table? See a reproducible example of the R code inside my .rmd file.
library(dplyr) tab <- data.frame(v1=c(1,2,3), v2=c(4,5,6)) kableExtra::kable(tab, col.names = c("V1", "V2"), align = 'c') %>% kableExtra::kable_styling(position = "center")