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
{{ message }}
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.
I think we could expose a different transform than unwrapList to do that. It is good to keep the current unwrapList available for operation like Backspace at the beginning of an item.
If we want to match Google Docs behavior, we should call the new transform toggleList. Because on Google Docs, you go from
- 1
- 2
- 2.1
- 2.2
- 3
to
1
2
2.1
2.2
3
No more bullets, but there is still some indentation. And toggling again goes back to the initial list.
I don't know how we could do that in Slate (we need to define "indent").
Would you like instead a transform that flatten all the blocks in a nested list ?
Thank you for your answer and sorry that I didn't answer so long time.
As for me, your explanation and suggestion sounds good. Could you a little bit describe your question?
Do you mean, that list will be?
Before:
- 1
- 2
- 2.1
- 2.2
- 3
After toggling:
1
2
2.1
2.2
3
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi.
Currently, when I try to unwrap multilevel list
For example, a list like this:
plugin just unwrap the first one item. Please, watch the slideshow below:
What do you think, if plugin would unwrap the whole list structure? The same behavior you can find in Google Docs, Pages and Word.
The text was updated successfully, but these errors were encountered: