Description
When column labels are formatted with md(), e.g., in cols_label(), that formatting gets silently dropped when you call tab_spanner_delim(). Ideally, I think that tab_spanner_delim() should retain the format - otherwise, this behaviour should be documented (and possibly even a warning issued, given that the user is unlikely to want to drop formatting that was explicitly assigned)?
Reproducible example
library(gt)
iris[1:5,] %>%
gt() %>%
cols_label(Sepal.Width = md("Sepal.*W*idth")) %>%
tab_spanner_delim(".")
Expected result
The italics on the W should have been kept.