Vanessa 2024-08-15 11:21:05 +08:00
parent 216dc408ff
commit f5ddcd2bbb
6 changed files with 29 additions and 41 deletions

View file

@ -2100,8 +2100,8 @@ export const setFold = (protyle: IProtyle, nodeElement: Element, isOpen?: boolea
}
nodeElement.removeAttribute("fold");
// https://github.com/siyuan-note/siyuan/issues/4411
nodeElement.querySelectorAll(".protyle-linenumber").forEach((item: HTMLElement) => {
lineNumberRender(item);
nodeElement.querySelectorAll(".protyle-linenumber__rows").forEach((item: HTMLElement) => {
lineNumberRender(item.parentElement);
});
} else {
if (typeof isOpen === "boolean" && isOpen) {