# editor: Improve rewrap of markdown lists, todos, and block quotes \(\#33702\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8fb3199a843556f1d3dbdbbb2ff63bfee30ac085)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8fb3199a843556f1d3dbdbbb2ff63bfee30ac085

Requested commit: 8fb3199a843556f1d3dbdbbb2ff63bfee30ac085

Commit: 8fb3199a843556f1d3dbdbbb2ff63bfee30ac085

Tree: a813957489f350602c9f24b57bf08b191f2ff6c0

Author: Smit Barmase

Committer: GitHub

## Message

````
editor: Improve rewrap of markdown lists, todos, and block quotes (#33702)

Closes #19644 #18151

Now, rewrapping markdown lists (unordered, ordered, and to-do lists) and
block quotes wrap them separately, without merging them together.
Additionally, it correctly indents subsequent lines.

With this input: 

```md
1. This is a list item that is short.
2. This list item is a bit longer because I want to see if it wraps correctly after a rewrap operation in Zed. What do you think?
3. another short item
```

Output would be:

```md
1. This is a list item that is short.
2. This list item is a bit longer because I want to see if it wraps correctly
   after a rewrap operation in Zed. What do you think?
3. another short item
```

Instead of:

```md
1. This is a list item that is short. 2. This list item is a bit longer because 
I want to see if it wraps correctly after a rewrap operation in Zed. What 
do you think? 3. another short item
```

Release Notes:

- Improved rewrap for markdown lists, todos, and block quotes.
````

## Parents

- [0d809c21ba41875457491c0c5c92a0422f25a29c](https://git.cafe/gitcafe/zed/commit/0d809c21ba41875457491c0c5c92a0422f25a29c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8fb3199a843556f1d3dbdbbb2ff63bfee30ac085?format=markdown)
