format posts to markdown