Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/9015

Vanessa530f011686b0
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts
index 32038eae09..da06aa8ed3 100644
--- a/app/src/protyle/wysiwyg/input.ts
+++ b/app/src/protyle/wysiwyg/input.ts
@@ -84,6 +84,10 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
wbrElement.remove();
return;
}
+ // https://github.com/siyuan-note/siyuan/issues/9015
+ if (trimStartText === "¥¥<wbr>") {
+ editElement.innerHTML = "$$<wbr>";
+ }
const refElement = hasClosestByAttribute(range.startContainer, "data-type", "block-ref");
if (refElement && refElement.getAttribute("data-subtype") === "d") {
const response = await fetchSyncPost("/api/block/getRefText", {id: refElement.getAttribute("data-id")});