Ordered list auto rename (when Inserting a new line)

Use case or problem

Ordered lists are not automatically renameed after line breaks and backspace

Here are two cases where you need to insert a new row between two adjacent options after creating an ordered list

in the first figure, I typed two newlines in a row
1

In the second image I typed a newline, then backspace
2

Sorry about my poor English!

Proposed solution

I think in both cases, you need to automatically rename the line with number 3 to 2

In the first case, or you can automatically restart from 1?