fix: handle parsing pure plain text
This commit is contained in:
parent
c4c15cf1c2
commit
80da856402
3 changed files with 11 additions and 1 deletions
|
@ -451,7 +451,7 @@ function transformCollapseMentions() {
|
|||
}
|
||||
|
||||
return (node: Node, root: Node): Node | Node[] => {
|
||||
if (processed || node.parent !== root)
|
||||
if (processed || node.parent !== root || !node.children)
|
||||
return node
|
||||
const metions: (Node | undefined)[] = []
|
||||
const children = node.children as Node[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue