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: https://github.com/siyuan-note/siyuan/issues/16053
Vanessac0bc7a61b6c5
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.tsindex 8ec43da4aa..176892894d 100644--- a/app/src/protyle/wysiwyg/input.ts+++ b/app/src/protyle/wysiwyg/input.ts@@ -167,7 +167,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:// ```test` 不处理,正常渲染为段落块} else {let replaceInnerHTML = editElement.innerHTML.trim().replace(/^(~|·|`){3,}/g, "```").replace(/\n(~|·|`){3,}/g, "\n```").trim();- if (!replaceInnerHTML.endsWith("\n```")) {+ if (!replaceInnerHTML.endsWith("\n```") && !replaceInnerHTML.endsWith("\n```<wbr>")) {replaceInnerHTML = replaceInnerHTML.replace("<wbr>", "") + "<wbr>\n```";}editElement.innerHTML = replaceInnerHTML;