# fix\(web\): Tab nests numbered list items in the composer · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/0b4e1193b573bbdc6ee14f6c648c6da690553d03)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 0b4e1193b573bbdc6ee14f6c648c6da690553d03

Requested commit: 0b4e1193b573bbdc6ee14f6c648c6da690553d03

Commit: 0b4e1193b573bbdc6ee14f6c648c6da690553d03

Tree: c8cce02374b83f3e65be22b5f6063f5ed48a788a

Author: Michał Kaciuba

Committer: Michał Kaciuba

## Message

```
fix(web): Tab nests numbered list items in the composer

Tab on a list item only prepended two spaces and kept the marker, so
`1. a` / Shift+Enter / Tab produced `  2. ` instead of a nested `1.`.
Two spaces under `1. ` is also not nesting in CommonMark (the child must
reach the parent's content column), so the agent received a flat list.

- Tab nests the item at the content column of the item above and numbers
  a nested ordered list from 1, or continues an existing sublist.
- Shift+Enter on an empty nested item moves it up one level and continues
  the parent's numbering (the rich-text composer already did this; the
  plain composer left the whole list).

Fixes #17124

```

## Parents

- [30cc788975500a8c00d32a50f348174d1ce578d1](https://git.cafe/pingdotgg/t3code/commit/30cc788975500a8c00d32a50f348174d1ce578d1?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/0b4e1193b573bbdc6ee14f6c648c6da690553d03?format=markdown)
