Convert index file to markdown