switch index to markdown