switching index to markdown