Skip to content

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

:art: Support inserting tabs blocks with /yq https://github.com/siyuan-note/siyuan/issues/19217

Danielc7f68e252551
diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.ts
index d5afe738f8..023e3d741c 100644
--- a/app/src/protyle/hint/extend.ts
+++ b/app/src/protyle/hint/extend.ts
@@ -175,7 +175,7 @@ export const getBuiltinSlashMenuItems = (protyle: IProtyle): IHintData[] => {
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.tabs, "tabs", "页签", "yeqian"],
+ filter: [window.siyuan.languages.tabs, "tabs", "页签", "yeqian", "yq"],
id: "tabs",
value: `::: tabs\n@tab\n\n${Lute.Caret}\n\n@tab\n\n:::\n`,
html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconTabs"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.tabs}</span></div>`,