This commit is contained in:
Vanessa 2022-11-10 15:46:22 +08:00
parent 34b49fe7de
commit 9b3c6e8449
4 changed files with 15 additions and 15 deletions

View file

@ -183,7 +183,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false) =>
} else {
if (item.classList.contains("li") && !blockElement.parentElement.classList.contains("list")) {
// https://github.com/siyuan-note/siyuan/issues/6534
addId = Lute.NewNodeID()
addId = Lute.NewNodeID();
const liElement = document.createElement("div");
liElement.setAttribute("data-subtype", item.getAttribute("data-subtype"));
liElement.setAttribute("data-node-id", addId);