sanity-io / block-content-to-react

Deprecated in favor of @portabletext/react
https://github.com/portabletext/react-portabletext
MIT License
161 stars 25 forks source link

Link urls being re-used #59

Closed zanedev closed 2 years ago

zanedev commented 2 years ago

I know this package is deprecated now so I will try and move to the new package to see if it fixes this but we have a strange issue where we have a simple text of links and the 3rd url is re-used in the 6th link. The strange thing is it only does it in gatsby production/build mode and not dev. We're on the latest 3.0.0 version.

Thought I would report it anyway in case someone has seen this before. In the screenshot below for example the url for the 3rd link "Help Desk" is showing up re-used in the final 6th link "Spring Show Gallery" in prod/build only. I've tried debugging the data and it looks correct.

image

zanedev commented 2 years ago

Turns out I had invalid nesting with a div inside an a in my marks. Changing it to an inline element fixed it.