You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a nested list in Strapi, it will be rendered as invalid HTML with list (ul/ol) elements as direct children of other list elements, instead of being children of list-items li.
Input:
* Test
* Test
Output:
<ul>
<li>Test</li>
<ul>
<li>Test</li>
</ul>
</ul>
I am not sure whether this is an issue with @strapi/blocks-react-renderer or strapi itself though. Let me know if I should raise the issue with strapi.
To Reproduce
Create a nested list in the blocks-editor in Strapi and render it with the blocks-react-renderer.
What version of
@strapi/blocks-react-renderer
are you using?What's Wrong?
When creating a nested list in Strapi, it will be rendered as invalid HTML with list (
ul
/ol
) elements as direct children of other list elements, instead of being children of list-itemsli
.Input:
Output:
I am not sure whether this is an issue with
@strapi/blocks-react-renderer
or strapi itself though. Let me know if I should raise the issue with strapi.To Reproduce
Create a nested list in the blocks-editor in Strapi and render it with the blocks-react-renderer.
Expected Behaviour
The list should be wrapped inside a list-item:
The text was updated successfully, but these errors were encountered: