adjust file extension to markdown