First, Catalonia held an unconstitutional referendum on independence and defied a court order that banned the referendum. The regional government then made a unilateral declaration of independence. In those circumstances it's not surprising that Catalonian autonomy was in part suspended.
Second, Catalonia's autonomy was not revoked. Part of it was suspended. Elections were held again, and there are ongoing negotiations to resolve the situation.
Third, and here's the real kicker, pro-independence parties are still legal in Spain. In fact, they hold a majority in the Catalonian parliament.
You cannot compare that to the events in Hong Kong. There was no declaration of independence by the HK government that necessitated a response from Beijing. Also, the CCP has been banning not just pro-independence parties but also made it illegal for ordinary citizens to even show support for the concept themselves. The national security law in HK is so wide that it could be used to suppress any criticism of the CCP or HK administration. Spain has been far calmer in comparison.
Nice redirection. I wonder what Madrid think of the year long rioting and open call to independence. Plus Beijing only implemented Article 23 as required in the Basic Law, didn't even suspend "part of autonomy"
Catalonia independence movement obviously have been neutered by Madrid. Article 23 will achieve the same thing