The Quran contains multiple examples of the messengers being ridiculed (13:32, 15:11, 21:41), including prophet Muhammad (16:101, 25:4, 17:47, 25:8, 37:36), of God and The Quran being mocked (21:5, 38:7, 25:5, 7:180) but there is not one instance of allowing violence or punishment for such an act.
Please see some unequivocal examples below: 33:48 And do not obey the rejectors and the hypocrites, and ignore their insults, and put your trust in God; for God suffices as an advocate. 4:140 ...when you hear the revelations of God being rejected and mocked, then do not sit with them until they move on to a different narrative... 73:10 And be patient over whatever they say, and depart from them in a good manner. 3:186 ...and you will hear from those who have been given the Book from before you and from the polytheists much annoyance. And if you are patient and righteous, then that is from a strength of conviction. 28:55 If they (believers) come across vain talk, they disregard it and say, "To us are our deeds, and to you is your deeds. Peace be upon you. We do not seek the ignorant." Those who listen to what is said, then follow the best of it; those are the ones God has guided, and are the men of understanding. [39:18] Invite to the way of your Lord with wisdom and good instruction, and argue with them in a way that is best. [16:125] Not equal are the good and the bad response. You shall resort to the one which is better. Thus, the one who used to be your enemy may become your best friend. [41:34] Take to pardoning, and order with what is good, and leave alone the ignorant ones. [7:199] For example, reacting with violence because of cartoons mocking prophet Muhammad is in contradiction to The Quran.
References: 1- misconceptions-about-islam.com