portabletext / svelte-portabletext

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

Standard <a>Text for link</a> tags not rendering in Portabletext #5

Closed popewainwright-design closed 2 years ago

popewainwright-design commented 2 years ago

Hello,

I'm using the Sanity/Sveltekit starter template - https://github.com/sanity-io/sanity-template-svelte-kit - and have found that links added to a block of text are not being rendered on the front end.

So the link is added to the text in Sanity, rendered to the frontend and the text is visible but no a tag is wrapped around it. Am I missing something in the set up here?

Thanks very much!

image image
hdoro commented 2 years ago

Hey @popewainwright-design 👋

As mentioned in #2, we have an upcoming v1 version that will fix this, at which point we'll update the starter. You can try v1 by installing @portabletext/svelte@1.0.0-next.1 and following the migration guide here.