portabletext / svelte-portabletext

Transform Portable Text content into Svelte components
svelte-portabletext.sanity.build
MIT License
62 stars 18 forks source link

<br> rendered after hydration but not SSR #23

Open el-schneider opened 1 year ago

el-schneider commented 1 year ago

Hard breaks are not being rendered in the server-side output, causing a lot of LS on hydration.

Edit1: More specifically a node like this:

{
    "_key": "f928dd32752c",
    "_type": "span",
    "marks": [],
    "text": "\n"
}

Edit2: actually it's very visible here: https://svelte-portabletext.sanity.build/hard-breaks

Renkas commented 4 months ago

How to get around this? What is blocking the fix for this?