sanity icon indicating copy to clipboard operation
sanity copied to clipboard

Sanity Studio Rich Text Editor does not properly close 3rd level ordered list tags

Open slegay opened this issue 1 month ago • 0 comments

If you find a security vulnerability, do NOT open an issue. Email [email protected] instead.

Describe the bug

When writing nested ordered lists, if a sub-list ends with a 3rd degree tabbed list, the next number is wrong. It seems that an ol tag is not getting properly closed.

To Reproduce

Create this ordered list in Sanity portable text editor editor, as shown in the screenshot.

image

Expected behavior

c should be a

Screenshots

image

Which versions of Sanity are you using?

@sanity/cli (global) 3.45.0 (up to date) @sanity/dashboard 3.1.6 (up to date) @sanity/google-maps-input 4.0.1 (up to date) @sanity/ui 2.3.1 (up to date) @sanity/uuid 3.0.2 (up to date) @sanity/vision 3.45.0 (up to date) sanity 3.45.0 (up to date)

What operating system are you using?

Ubuntu

Which versions of Node.js / npm are you running?

9.8.1 v18.18.2

Additional context

The problem goes away when adding a level 2 item after finishing a level 3 ordered list, and before starting a new level 1 list item, as shown below:

image

slegay avatar Jun 07 '24 21:06 slegay