Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect numbering in the ordered lists #443

Open
MaxTyulin opened this issue Jun 14, 2024 · 1 comment
Open

Incorrect numbering in the ordered lists #443

MaxTyulin opened this issue Jun 14, 2024 · 1 comment

Comments

@MaxTyulin
Copy link

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

1. a
    1. a.a
        1. a.a.a
    1. a.b
1. b

expected
image

real
image

@shevnv
Copy link
Contributor

shevnv commented Jun 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants