mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 20:38:49 +01:00
This commit is contained in:
parent
492eede64f
commit
063b84748d
1 changed files with 7 additions and 1 deletions
|
|
@ -157,7 +157,13 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
}
|
||||
});
|
||||
if (mathSize > 0 && mathSize < html.split('<span data-type="inline-math" data-subtype="math"').length - 1) {
|
||||
// protyle.toolbar.showRender(protyle, mathElement);
|
||||
Array.from(blockElement.querySelectorAll('[data-type="inline-math"]')).find((item: HTMLElement) => {
|
||||
if (item.dataset.content.indexOf("<wbr>") > -1) {
|
||||
item.setAttribute("data-content", item.dataset.content.replace("<wbr>", ""));
|
||||
protyle.toolbar.showRender(protyle, item);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
Array.from(tempElement.content.children).forEach((item, index) => {
|
||||
const tempId = item.getAttribute("data-node-id");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue