The genome of a cave plant, Primulina huaijiensis, provides insights into adaptation to limestone karst habitats.