Split your 'rmarkdown' or 'quarto' files by sections into a tibble: titles, text, chunks. Rebuild the file from the tibble.
Sebastien Rochette
aut / cre
cph
arm64
x86_64