portabletext / react-portabletext

Render Portable Text with React
https://portabletext.github.io/react-portabletext/
MIT License
319 stars 29 forks source link

Lists do not work with Styles properly #178

Open arick-mounts opened 5 months ago

arick-mounts commented 5 months ago

Style components are applied within list items, instead of outside of the list, so for example having a list with the h1 style results in broken behavior since the \

tags put inside the \
  • are displayed as block and are displayed on a new line. ( ik headers shouldn't have list, but the same issue would occur with any custom style where it would make more sense to contain a list)

    image