sanity
sanity copied to clipboard
Nested lists in editor for Portable Text breaks root ordering
Describe the bug
Let's say you want to have nested lists inside an ordered list. This apparently breaks the incremental numbering in the editor:
The list style doesn't adjust to the previous level’s style when you tab back'n'forth either.
To Reproduce
Make and mix nested ordered/unordered lists in the editor
Expected behavior
The numbers for ordered lists should increment from the previous item on the same level. Tabbing list items between levels should adjust list style.
Screenshots
Which versions of Sanity are you using?
v0.140.21
Will this be fixed soon? 😊 I would say it's a relative basic thing to have in content editing and I have to explain today that this is not possible in Sanity 😞 @kmelve
I'd also be keen to see a fix for this. In adding a web preview pane (à la @hdoro), I've noticed that the Javascript client actually produces the intended result (but also renders a less elegant (but more correct) version of nested ordered lists).
A smarter person could probably figure out what each of these serializers are doing right and combine them. Alas, I'm not that clever. Anyone else feel up to this challenge? It seems like there's a solution there ... just not all in one place.
Sanity version: 2.13.0
I recently experienced this for the first time. The editor threw me off for a minute, until I opened preview and saw it does render nested lists as intended - it's just not reflected in Sanity. If I had the time I would dig deeper into why, but at least better this than the reverse.
Hi!
We are currently working on improving our workflows and follow-up on our open GitHub repository. In that work, we have decided to close most issues older than the release of Sanity Studio v3.
We value your feedback, so if this issue is still important to you and relevant for Sanity Studio v3, please search for relevant open issues. If you can’t find any, open a new one and link to relevant comments in this thread. For questions about how to do something, please post them in the slack community.