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

Correctly convert mixed lists #2581

Merged
merged 1 commit into from
Apr 16, 2019
Merged

Conversation

alecgibson
Copy link
Contributor

At the moment, it's possible to construct a "mixed" list of ordered and
bulleted items, eg:

  1. One
  2. Two
  - Foo
  - Bar

If you create this list in Quill, then cut it and paste it back again,
the bullet items are transformed into ordered items, which is
surprising.

This change updates the list HTML conversion logic to check that the
list is still a continuation of the previous type. If not, it starts a
new list of the correct type.

At the moment, it's possible to construct a "mixed" list of ordered and
bulleted items, eg:

```markdown
  1. One
  2. Two
  - Foo
  - Bar
```

If you create this list in Quill, then cut it and paste it back again,
the bullet items are transformed into ordered items, which is
surprising.

This change updates the list HTML conversion logic to check that the
list is still a continuation of the previous type. If not, it starts a
new list of the correct type.
@jhchen jhchen merged commit dc806d6 into slab:develop Apr 16, 2019
@jhchen
Copy link
Member

jhchen commented Apr 16, 2019

Thanks!

@alecgibson alecgibson deleted the convert-mixed-lists branch April 17, 2019 06:35
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 this pull request may close these issues.

2 participants