Comment out text in R Markdown (Rmd file) December 2, 2022 by Tarik I think you should be able to use regular html comments: <!-- regular html comment --> Does this work for you?