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/15330 经查看 lute 现在没有限制,因此前端也移除对其的限制
Vanessab126d34dde08
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex ed3ade6815..75c93d5d00 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -555,15 +555,11 @@ export class Gutter {public renderMultipleMenu(protyle: IProtyle, selectsElement: Element[]) {let isList = false;let isContinue = false;- let hasEmbedBlock = false;selectsElement.find((item, index) => {if (item.classList.contains("li")) {isList = true;return true;}- if (item.classList.contains("sb") || item.classList.contains("p")) {- hasEmbedBlock = true;- }if (item.nextElementSibling && selectsElement[index + 1] &&item.nextElementSibling === selectsElement[index + 1]) {isContinue = true;@@ -612,19 +608,16 @@ export class Gutter {type: "Blocks2Blockquote"}));}- // 多选引用转换为块的时候 id 不一致- if (!hasEmbedBlock) {- turnIntoSubmenu.push(this.turnsInto({- menuId: "paragraph",- icon: "iconParagraph",- label: window.siyuan.languages.paragraph,- accelerator: window.siyuan.config.keymap.editor.heading.paragraph.custom,- protyle,- selectsElement,- type: "Blocks2Ps",- isContinue- }));- }+ turnIntoSubmenu.push(this.turnsInto({+ menuId: "paragraph",+ icon: "iconParagraph",+ label: window.siyuan.languages.paragraph,+ accelerator: window.siyuan.config.keymap.editor.heading.paragraph.custom,+ protyle,+ selectsElement,+ type: "Blocks2Ps",+ isContinue+ }));turnIntoSubmenu.push(this.turnsInto({menuId: "heading1",icon: "iconH1",