An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/8972
Vanessa063b84748dcc
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.tsindex 766267eedc..41e7788bb1 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('<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");