Text this: Heavy flavors in nucleus-nucleus and proton-nucleus collisions