Cleanup index to valid markdown