dump the markdown output to a file