Commit b08248bd by qlintonger xeno

feat: 使用diff_match_patch来对比完毕+2

parent 7f96abe1
......@@ -55,9 +55,11 @@ export function reconstructTree(data: any[]) {
// Set data-type attribute if type is not null
if (node.type !== null) {
element.setAttribute('data-type', node.type);
element.setAttribute('data-modify-type', node.type);
}
element.setAttribute('data-type', node.label)
// Set textContent for TITLE or PARA nodes
if (node.label === 'TITLE' || node.label === 'PARA') {
element.textContent = node.textContent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment