Vanessa 2025-05-07 23:27:41 +08:00
parent e46c998a6b
commit 386144955b

View file

@ -72,6 +72,11 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
(brNextElement as HTMLElement).getAttribute("data-type")?.indexOf("inline-math") > -1) {
wbrNextElement.remove();
}
// https://github.com/siyuan-note/siyuan/issues/14290
if (event.inputType === "deleteContentBackward" &&
wbrNextElement.previousSibling.previousSibling?.textContent.endsWith("\n")) {
wbrNextElement.outerHTML = "\n";
}
}
}
const id = blockElement.getAttribute("data-node-id");