The whitespace package will avoid removing trailing whitespace for markdown files by default, but this is not done for .Rmd files, so trailing white space is trimmed and it often leads to poorly formatted outputs upon knitting.

I'm not sure if some designation needs to be made in that package or this one, but I remember Rmd files working previously in this way.
The whitespace package will avoid removing trailing whitespace for markdown files by default, but this is not done for
.Rmdfiles, so trailing white space is trimmed and it often leads to poorly formatted outputs upon knitting.I'm not sure if some designation needs to be made in that package or this one, but I remember Rmd files working previously in this way.