change device detail to markdown