Markdown rendering on IOS/OSX for long messages

While on ChatGPT web if I get a code snippet splitten in multiple messages (up to 3) it works perfect, on OSX app and IOS app the formatting breaks at second messages.