mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 10:16:10 +01:00
This commit is contained in:
parent
8dc42764c0
commit
91667b175a
1 changed files with 5 additions and 0 deletions
|
|
@ -148,12 +148,17 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
// 使用 md 闭合后继续输入应为普通文本
|
||||
blockElement.outerHTML = html.replace("</span><wbr>", "</span>" + Constants.ZWSP + "<wbr>");
|
||||
}
|
||||
// https://github.com/siyuan-note/siyuan/issues/8972
|
||||
const mathSize = blockElement.querySelectorAll('[data-type="inline-math"]').length;
|
||||
protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${id}"]`).forEach((item: HTMLElement) => {
|
||||
if (item.getAttribute("data-type") === "NodeBlockQueryEmbed" ||
|
||||
!hasClosestByAttribute(item, "data-type", "NodeBlockQueryEmbed")) {
|
||||
blockElement = item;
|
||||
}
|
||||
});
|
||||
if (mathSize > 0 && mathSize < html.split('<span data-type="inline-math" data-subtype="math"').length - 1) {
|
||||
// protyle.toolbar.showRender(protyle, mathElement);
|
||||
}
|
||||
Array.from(tempElement.content.children).forEach((item, index) => {
|
||||
const tempId = item.getAttribute("data-node-id");
|
||||
let realElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue