Convert the index to markdown