all_output_formats function

Determine all output formats for an R Markdown document