convert posts to markdown