This commit is contained in:
parent
54e291ea98
commit
88de880608
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,10 @@ export const cancelSB = (protyle: IProtyle, nodeElement: Element) => {
|
|||
id,
|
||||
});
|
||||
nodeElement.lastElementChild.remove();
|
||||
// 超级块中的 html 块需要反转义再赋值 https://github.com/siyuan-note/siyuan/issues/13155
|
||||
nodeElement.querySelectorAll("protyle-html").forEach(item => {
|
||||
item.setAttribute("data-content" , item.getAttribute("data-content").replace(/</g, "<").replace(/>/g, ">"))
|
||||
})
|
||||
nodeElement.outerHTML = nodeElement.innerHTML;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue