Make sure that Rmd/Qmd chunk labels are written without spaces

correct_rmd(rmd)

Arguments

rmd

Character string with the content of a Rmd/Qmd file.

Value

The same Rmd/Qmd content, but with "educated" chunk labels.