In a Google Doc, you can create a nested list like
1. List item
2. List item
a. Nested list item
b. Nested list item
3. List item
This is represented in GDocs as a single list with 5 list items, where the outer items have attributes ls_nest: 0 and in nested items have attributes ls_nest: 1. When converting this from the GDocs source to Offset, we drop the ls_nest attribute and just produce a list with 5 elements.
What do you expect to happen?
Produce annotations like:
List item\nList item\nNested list item\nNested list item\nList item
^-----item-----^ ^-----item-----^
^------ List { level: 2 } -------^
^-item--^ ^-item--^ ^------------- item -------------^ ^-item--^
^---------------------- List { level: 1 } ------------------------^
What happened instead?
Produced annotations like:
List item\nList item\nNested list item\nNested list item\nList item
^-item--^ ^-item--^ ^-----item-----^ ^-----item-----^ ^-item--^
^----------------------------- List ------------------------------^
Environment
| Software |
Version(s) |
| Node |
10 |
| Lerna |
3.2 |
| npm |
6.4 |
| Browser |
Chrome 80 |
In a Google Doc, you can create a nested list like
This is represented in GDocs as a single list with 5 list items, where the outer items have attributes
ls_nest: 0and in nested items have attributesls_nest: 1. When converting this from the GDocs source to Offset, we drop thels_nestattribute and just produce a list with 5 elements.What do you expect to happen?
Produce annotations like:
What happened instead?
Produced annotations like:
Environment