Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Formatting issue with Sanity causing text to be messed up on published website.

7 replies
Last updated: Dec 5, 2023
Hello, whom do I contact if I have issues with Sanity?
Dec 4, 2023, 4:00 PM
Basically, I am running into a formatting issue. Although everything looks perfect on the Sanity Studio, once I publish it on our website the formatting of the text is messed up.
Here’s the link to the website blog (formatting issue start at the 2nd half of the article):
https://gowit.com/retail-media-networks-a-complete-guide-with-definition-and-examples
Dec 4, 2023, 4:04 PM
I'm pretty confident formatting is not Sanity issue, but content issue.You have extra empty lines in the content itself
Dec 4, 2023, 4:29 PM
Yes, we have checked the content but found nothing. My frontend colleague said it could be a bug. But even if it is a content issue, what could it be?
Dec 4, 2023, 4:33 PM
I think it would be almost content issue.
Dec 4, 2023, 4:41 PM
you need to look into the way to parse content to frontend section.
Dec 4, 2023, 4:41 PM
Definitely. Although it’s not impossible to find an issue in Sanity’s portable text, it is very very unlikely and most likely a rendering issue on your side.
Dec 4, 2023, 6:05 PM
It was the headings issue. When I put all headings in the same format, it worked.
Dec 5, 2023, 8:48 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?