From 063b84748dcc93f4bb0de22d0a2eb08bc311f0ea Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 16 Aug 2023 23:04:48 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/8972 --- app/src/protyle/wysiwyg/input.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index 766267eed..41e7788bb 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/app/src/protyle/wysiwyg/input.ts @@ -157,7 +157,13 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range: } }); if (mathSize > 0 && mathSize < html.split(' { + if (item.dataset.content.indexOf("") > -1) { + item.setAttribute("data-content", item.dataset.content.replace("", "")); + protyle.toolbar.showRender(protyle, item); + return true; + } + }); } Array.from(tempElement.content.children).forEach((item, index) => { const tempId = item.getAttribute("data-node-id");