mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-15 03:28:07 +01:00
This commit is contained in:
parent
e46c998a6b
commit
386144955b
1 changed files with 5 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue