Open MaxTyulin opened 2 weeks ago
it happens because transform has two mutually exclusive functionalities for numbered lists.
The first is feature for sublist with complex counters(1.1, 1.1.1 etc). it's enabled by default in diplodoc-platform/transform
.
The second is functionality which give you opportunity to start list from any number, not only 1. It's enabled by default in markdown-it
.
In wysiwyg, we had a lot of complains about disabled second functionality, so we disabled the first by adding class yfm_no-list-reset
to wysiwyg root-node.
My suggestions, in this issue, Let's try to combine both functionalities, so It helps wisywig not to decide which functionality is more important.
In split view, the numbers for nested elements look like 1 -> 1.1 -> 1.1.1, but in wysiwyg mode, each new element starts with 1.
with markup
expected![image](https://github.com/diplodoc-platform/transform/assets/11501213/5122ee18-4dfd-4927-9b5d-1b228b6fd822)
real![image](https://github.com/diplodoc-platform/transform/assets/11501213/f232795e-d9d2-4451-a1c2-e3cf068c1b00)