is merging similar adjacent nodes on a transformer expected? #177
-
if I have that parsed with {
type: 'root',
children: [
{
type: 'element',
tagName: 'span',
properties: {},
children: [Array],
position: [Object],
},
{
type: 'element',
tagName: 'span',
properties: {},
children: [Array],
position: [Object],
},
],
data: {quirksMode: false},
position: {
start: {line: 1, column: 1, offset: 0},
end: {line: 1, column: 38, offset: 37},
},
} is it Ok if in my mutation I thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As long as the resulting content is still valid (in this case still a valid |
Beta Was this translation helpful? Give feedback.
As long as the resulting content is still valid (in this case still a valid
<span>
tag) and the result of the transform is something you want.Merge, split, add, and remove content to your hearts content.