A 5.8 magnitude earthquake shook buildings in downtown Taipei Tuesday, but no damage or casualties were immediately reported, according to news reaching Hong Kong.