This commit is contained in:
parent
dca901cef1
commit
292c195e9b
1 changed files with 1 additions and 1 deletions
|
@ -448,7 +448,7 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran
|
|||
// 非空块
|
||||
range.setEndAfter(editableElement.lastChild);
|
||||
// 数学公式会车后再删除 https://github.com/siyuan-note/siyuan/issues/3850
|
||||
if (previousLastEditElement?.lastElementChild?.getAttribute("data-type").indexOf("inline-math") > -1) {
|
||||
if ((previousLastEditElement?.lastElementChild?.getAttribute("data-type") || "").indexOf("inline-math") > -1) {
|
||||
const lastSibling = hasNextSibling(previousLastEditElement?.lastElementChild);
|
||||
if (lastSibling && lastSibling.textContent === "\n") {
|
||||
lastSibling.remove();
|
||||
|
|
Loading…
Add table
Reference in a new issue