Skip to content
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

Split list on enter in empty item #30

Open
alexanderjulmer opened this issue Oct 7, 2021 · 0 comments · May be fixed by #33
Open

Split list on enter in empty item #30

alexanderjulmer opened this issue Oct 7, 2021 · 0 comments · May be fixed by #33
Assignees

Comments

@alexanderjulmer
Copy link

alexanderjulmer commented Oct 7, 2021

Expected behaviour: Hitting Enter in an empty list item of level 1 (no indentation) removes the item, splits the list and inserts a paragraph.

1. First item
2. Second item
3. | <-- Cursor, hit Enter here
4. Fourth item
5. Fifth item
1. First item
2. Second item

| <-- Cursor now in new paragraph

4. Fourth item
5. Fifth item

Actual behaviour: Hitting Enter in an empty list item adds another empty list item below and moves the cursor to the new empty list item.

Reasoning: Splitting the list is standard behavior of Google Docs and Microsoft Word.

Note: The behavior in Google Docs is slightly different: Google Docs actually adds a non-indented paragraph in the list item so that the list stays intact.

If implemented, the reverse should also be implemented: Deleting a paragraph block between two lists should merge the lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants