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

Backspace (joinBackward command) breaks list weird when called on first item of nested list #1437

Open
andrey-skl opened this issue Dec 19, 2023 · 1 comment

Comments

@andrey-skl
Copy link

andrey-skl commented Dec 19, 2023

To reproduce,

  1. Open ProseMirror example https://prosemirror.net/examples/markdown/
  2. Paste this content in Markdown mode
* one
  * two
  1. Switch to WYSIWYG mode
  2. Put cursor at the start of first item
  3. Hit "Backspace" or click "lift out of enclosing block" toolbar button
    2023-12-19 15 12 14

Expected: the text of firs item is "lifted out" of the list:
Screenshot 2023-12-19 at 15 07 34

Actual: List gets into broken state:
Screenshot 2023-12-19 at 15 07 10

@marijnh
Copy link
Member

marijnh commented Dec 20, 2023

The list isn't in a broken state. It's a list item that contains another list. Markdown allows this (* * two).

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

No branches or pull requests

2 participants