-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Desktop, Mobile: Fixes #11845: Fixes issues with converting nested lists between bullet and numbered. #11857
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA. |
ed22130
to
357cb63
Compare
Thank you for working on this! Be sure to also update the automated tests in |
Done! Please review |
b2505e2
to
a9f1d46
Compare
Thank you! Be sure to update the existing tests, too — one is failing:
|
That tests passes now! I rewrote the expected results for a nested checklist that gives checklists to the sublists as well. |
@personalizedrefrigerator, please let me know when you think it's ready to merge, as I don't know enough about the CM6 implementation to review |
any updates @personalizedrefrigerator ? |
The code looks good to me! I plan to test the change locally before approving the pull request. |
I've tested this locally. I've noticed that changing the list type with the cursor anywhere in the toplevel list (with an empty selection) changes the list types of all sublists. The description of #11845 includes only the case where all text is selected.
Thank you @rabbabansh for the work you've done on this so far! |
Not sure what's best here? What do other editors do in this situation? |
I agree that's not ideal. I think as a general rule we should limit all kind of "smart" behaviour when it comes to lists so in this case it should:
Anything else may or may not be what the user wants and we should avoid that. I'd rather have the editor be more plain but with a predictable behaviour. @rabbabansh, are you able to complete this pull request? |
Closing stale pull request |
Fixes #11845 now, this"
converts to:
Checklists also convert nested lists fully, rather than just converting the first indent to checklists.