Replies: 3 comments 4 replies
-
The duplicated class names between the DIV and the UL elements appears to be a bug. The behaviour you're seeing where each sibling list item has its own UL element isn't a bug. This is a feature of the "indent list" plugin, which takes some departures from the HTML list spec in order to support applying arbitrary indentation levels to each list item (like in MS Word). If you want a more traditional list solution that has valid HTML semantics and better accessibility, use the plain list plugin instead of the indent list plugin. |
Beta Was this translation helpful? Give feedback.
-
@12joan Thank you for response. You said that it's feature of "indent list" plugin that they generated separately. Please look at the screenshot, there are nested UL element with different list style type. My question is if indent list plugin generates separately, how got this result? |
Beta Was this translation helpful? Give feedback.
-
That screenshot is from the documentation page for the plain list plugin, which uses the same nested structure as standard HTML lists.
|
Beta Was this translation helpful? Give feedback.
-
Description
I am on playground page, trying to create ul list, clicking keyboard tab button to indent list items, it works but the style are same, also each list item generated as a new
<ul> <li>list item </li> <ul>
. I think they should be nested like:<ul> <li>item 1<li> <li> item 2 <li> </ul>
; Because of this I have an issue, after serialization multiple list items are generated separatelyReproduction URL
No response
Reproduction steps
Plate version
36.4.0
Slate React version
0.108.0
Screenshots
No response
Logs
No response
Browsers
No response
Funding
Beta Was this translation helpful? Give feedback.
All reactions