Unless one intended to ridicule or show irreverence towards the sacred, a joke is simply a joke. But these could scandalize the weak, so caution is necessary.
Somewhere in the Catholic Encyclopedia 1917 there is a very short paragraph discouraging the making fun of holy Persons or sacred things. If I remember, around the end of the 18 th Century, it was kind of getting out of hand, so the Church made a statement. It falls under the sin of blasphemy, irreverence towards God, Saints, Sacred words taken in vain, things holy used as the b*tt end of a joke. About the same time, the Church banned crucifixes having a lamb...pagans were remarking: Hey, look..they are worshipping an animal!
I remember a priest telling a 4 minute joke about God speaking of /creating Canada. 'Such a grand country, mountains, rivers, rich in resources etc.' And the priest ended with a punch line, putting words in God's mouth, speaking as if God was really saying it. Then God said:"..."
Please don't mock / imitate Almighty God, the Creator of the universe.
THAT is when it becomes some form of blasphemy, and good Catholics are to refrain from taking the sacred lightly...imo.
There is a lot of irony / satire in Holy Writ.
Isaac means laughter.
I love the part in Esther, 6 and 7, when Aman thought he was going to be honored by the king, exclaiming around the city when he was wearing regal garb etc. and then in the next chapter he gets hung up on