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/16051
Vanessa1c9262e9c088
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 3fad440c05..aa11682fed 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -626,14 +626,14 @@ export class Gutter {selectsElement,type: "Blocks2Blockquote"}));- // turnIntoSubmenu.push(this.turnsIntoOne({- // menuId: "callout",- // icon: "iconCallout",- // label: window.siyuan.languages.callout,- // protyle,- // selectsElement,- // type: "Blocks2Callout"- // }));+ turnIntoSubmenu.push(this.turnsIntoOne({+ menuId: "callout",+ icon: "iconCallout",+ label: window.siyuan.languages.callout,+ protyle,+ selectsElement,+ type: "Blocks2Callout"+ }));}turnIntoSubmenu.push(this.turnsInto({menuId: "paragraph",@@ -1015,14 +1015,14 @@ export class Gutter {selectsElement: [nodeElement],type: "Blocks2Blockquote"}));- // turnIntoSubmenu.push(this.turnsIntoOne({- // menuId: "callout",- // icon: "iconCallout",- // label: window.siyuan.languages.callout,- // protyle,- // selectsElement: [nodeElement],- // type: "Blocks2Callout"- // }));+ turnIntoSubmenu.push(this.turnsIntoOne({+ menuId: "callout",+ icon: "iconCallout",+ label: window.siyuan.languages.callout,+ protyle,+ selectsElement: [nodeElement],+ type: "Blocks2Callout"+ }));turnIntoSubmenu.push(this.turnsInto({menuId: "heading1",icon: "iconH1",@@ -1102,14 +1102,14 @@ export class Gutter {selectsElement: [nodeElement],type: "Blocks2Blockquote"}));- // turnIntoSubmenu.push(this.turnsIntoOne({- // menuId: "callout",- // icon: "iconCallout",- // label: window.siyuan.languages.callout,- // protyle,- // selectsElement: [nodeElement],- // type: "Blocks2Callout"- // }));+ turnIntoSubmenu.push(this.turnsIntoOne({+ menuId: "callout",+ icon: "iconCallout",+ label: window.siyuan.languages.callout,+ protyle,+ selectsElement: [nodeElement],+ type: "Blocks2Callout"+ }));if (subType !== "h1") {turnIntoSubmenu.push(this.turnsInto({menuId: "heading1",@@ -1202,14 +1202,14 @@ export class Gutter {selectsElement: [nodeElement],type: "Blocks2Blockquote"}));- // turnIntoSubmenu.push(this.turnsIntoOne({- // menuId: "callout",- // icon: "iconCallout",- // label: window.siyuan.languages.callout,- // protyle,- // selectsElement: [nodeElement],- // type: "Blocks2Callout"- // }));+ turnIntoSubmenu.push(this.turnsIntoOne({+ menuId: "callout",+ icon: "iconCallout",+ label: window.siyuan.languages.callout,+ protyle,+ selectsElement: [nodeElement],+ type: "Blocks2Callout"+ }));if (nodeElement.getAttribute("data-subtype") === "o") {turnIntoSubmenu.push(this.turnsOneInto({menuId: "list",diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.tsindex 9b60440051..ce27e9686a 100644--- a/app/src/protyle/hint/extend.ts+++ b/app/src/protyle/hint/extend.ts@@ -130,13 +130,12 @@ export const hintSlash = (key: string, protyle: IProtyle) => {id: "quote",value: "> " + Lute.Caret,html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconQuote"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.quote}</span>${getHotkeyOrMarker(window.siyuan.config.keymap.editor.insert.quote.custom, ">")}</div>`,- }, /*{+ }, {filter: [window.siyuan.languages.callout, "callout", "ts", "提示", "tishi"],id: "callout",- value: `> [!NOTE]-> ${Lute.Caret}`,+ value: `> [!NOTE]\n> ${Lute.Caret}`,html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconCallout"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.callout}</span></div>`,- },*/ {+ }, {filter: [window.siyuan.languages.code, "code block", "代码块", "daimakuai", "dmk"],id: "code",value: "```",