portabletext/react-portabletext

Lists do not work with Styles properly

Opened this issue · 0 comments

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 <h1> tags put inside the <li> 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