rstudio/rmarkdown — pull request #201 by justacec (2014-08-03 23:30:46+00:00)
Title: Export the current output format to knitr

This will allow for the knitr blocks to know the name of the output block. This information can be used to adjust settings for different types of output. An example of such a setting is the fig.align which currently does not produce figures in pdf documents if it is set. Though the `rmarkdown.pandoc.to` field contains some information concerning this it is degenerate since multiple types of html documents will simply say 'html'. By knowing the actual output format name (which includes extensions to the current rmarkdown package) the end user has some more flexibility.