# Losing R-Markdown title when automating knitting

This question already has an answer here:

RStudio answers that here. You can see the template they use at this gist, and if you look at the markdown generation pane you'll see that eventually a wicked long pandoc call is made:

/usr/local/bin/pandoc forso.utf8.md
--to html
--output forso.html
--smart
--email-obfuscation none
--self-contained
--standalone
--section-divs
--template /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rmarkdown/rmd/h/default.html
--variable 'theme:bootstrap'