Convert index to markdown