converts filetype to markdown