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.
Answered by
ChristianMurphy
Nov 23, 2021
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.
0 replies
Answer selected by
horacioh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.