Change file type of markdown document