Wish I could copy from that site. The alkaloid in question is eliminated when taters are cooked. Some South American peoples practically lived on them!
The toxicity is in the GREEN parts of the plant...
“Green skin or flesh on a potato or sprouts from the eyes that dimple its skin signal rising levels of solamine that accompany the growth of a new plant.”
https://homeguides.sfgate.com/parts-potato-plants-poisonous-56644.html
I seem to remember a few Irish folk literally living off potatoes at one time. However, their life expectancy did really suck.