you are correct. only the .Rmd files and not .md or .html (analogously, only .Rnw but not .tex or other tex side-effect files should be committed). 

If I want to put these extensions into gitignore, but only when they are in the vignettes folder, would it work to just add `*/vignettes/*.md` and etc?