-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Use inner blocks for lists #35870
Conversation
Size Change: -848 B (0%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
There should be some prior work from @ellatrix to bring nested blocks support for the List block. I know that @oandregal worked on the same type of changes to the Query block in #25892 but he put it on hold because of his involvement in the Global Styles project. |
Quote should be much, much easier than lists. A list item also needs to support nesting a whole other list after the text: <ol>
<li>item 1
<ol>...</ol>
</li>
</ol> So there could be a list block and a list item block which can be an inner block of the list block. But then inside the list item block it needs to be possible to append another list block. The contents of this sublist are tied to the parent list item's text. Similarly when moving a list item up or down, the sublist tied to that list item should move up or down with it. |
It's on my TODO list to jump over to #25892 and see if there's any way I can help with that one.
if I understand you properly this is already supported even in this PR (although it's not like the current state of this exploratory PR is something that we could talk about merging). Still, the |
This would make #31733 significantly easier, since it would be transforming one block tree to another instead of parsing HTML. |
192ebd6
to
5a731f9
Compare
#39487 added similar functionality. The alternative PR keeps the old and new implementation as it is necessary for the transition period. Let's close this one as a duplicate. |
Lists in HTML are more like containers than sequences of paragraphs. How can we make list blocks generic containers?