Closed
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
1.2.1
Link to runnable example
No response
Steps to reproduce
parse
- - text
more text
which has the structure
{
"type": "root",
"children": [
{
"type": "list",
"ordered": false,
"children": [
{
"type": "listItem",
"checked": null,
"children": [
{
"type": "list",
"ordered": false,
"children": [
{
"type": "listItem",
"checked": null,
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text"
}
]
}
]
}
]
},
{
"type": "paragraph",
"children": [
{
"type": "text"
}
]
}
]
}
]
}
]
}
Expected behavior
structure should remain
{
"type": "root",
"children": [
{
"type": "list",
"ordered": false,
"children": [
{
"type": "listItem",
"checked": null,
"children": [
{
"type": "list",
"ordered": false,
"children": [
{
"type": "listItem",
"checked": null,
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text"
}
]
}
]
}
]
},
{
"type": "paragraph",
"children": [
{
"type": "text"
}
]
}
]
}
]
}
]
}
Actual behavior
content is stringified as
* * text
more text
which has the structure
{
"type": "root",
"children": [
{
"type": "list",
"ordered": false,
"children": [
{
"type": "listItem",
"checked": null,
"children": [
{
"type": "list",
"ordered": false,
"children": [
{
"type": "listItem",
"checked": null,
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text"
}
]
}
]
}
]
}
]
}
]
}
]
}
Runtime
Node v16
Package manager
npm v7
OS
Linux
Build and bundle tools
No response