This is a bug in RMarkdown 1.9. Rolling back to RMarkdown 1.8 fixed it for me (after going crazy for multiple days trying to fix).
You can roll back the version using:
install.packages("devtools")
library(devtools)
install_version("rmarkdown", version = "1.8")
I'm about to email Yihui about the issue.