The typechecker is already using the expr-parser output, which strips ins/del, but the result of that parse can have multiple adjacent name: 'text' items in sequence, which the typechecker didn't account for here. Specifically, with the input <ins>?</ins> Foo() we end up with [{ name: 'text', content: '?' }, { name: 'text', content: ' ' }, foo]. Adjust the logic to handle this case.
Fixes https://github.com/tc39/ecmarkup/issues/608.
The typechecker is already using the expr-parser output, which strips ins/del, but the result of that parse can have multiple adjacent
name: 'text'
items in sequence, which the typechecker didn't account for here. Specifically, with the input<ins>?</ins> Foo()
we end up with[{ name: 'text', content: '?' }, { name: 'text', content: ' ' }, foo]
. Adjust the logic to handle this case.