The article itself states the reason the IDF says it targeted those buildings. Hamas was using those buildings as communication centers. Notably, the article, despite having spoken to journalists stationed in the building, found nobody to deny the truth of Israel's allegations.
IDF specifically states it did not target journalists. It targeted a building that constituted a legitimate target under the Geneva Convention that it knew had journalists within. That is not a violation of the Geneva Convention and does not contribute "targeting journalists". Otherwise it would be a violation of the Geneva Convention to target any armed forces that were known to be travelling with an embedded journalist.
If you believe that it is a violation of the Geneva Convention to target a military target that also houses journalists, I would like to know what provision of the Geneva Convention prohibits such behavior. If you believe that the building was not used as a communications center by Hamas, I would like to see your evidence. I have looked for any confirmation or denial that this building was used by Hamas as a communications hub or center, and found no such denials.