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/5975

Vanessa53e24a9ee804
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 8b64c60cb1..7b260012ea 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -992,7 +992,8 @@ export class Toolbar {
inlineLastNode = item;
}
} else {
- item.setAttribute("data-inline-memo-content", Lute.EscapeHTMLStr(textElement.value));
+ // 行级备注自动移除换行 https://ld246.com/article/1664205917326
+ item.setAttribute("data-inline-memo-content", Lute.EscapeHTMLStr(textElement.value.replace(/\n/g, " ")));
}
});
} else if (types.includes("inline-math")) {