An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
{
"ID": "20200813125307-pxsjela",
"Spec": "2",
"Type": "NodeDocument",
"Properties": {
"id": "20200813125307-pxsjela",
"title": "导入和导出",
"type": "doc",
"updated": "20261024163013"
},
"Children": [
{
"ID": "20201229120428-dgzkno8",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20201229120428-dgzkno8",
"updated": "20261024163013"
},
"Children": [
{
"Type": "NodeText",
"Data": "导入"
}
]
},
{
"ID": "20220511184321-um53ppo",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20220511184321-um53ppo",
"updated": "20261024163013"
},
"Children": [
{
"Type": "NodeText",
"Data": "Markdown"
}
]
},
{
"ID": "20210120161018-1mdw4fy",
"Type": "NodeParagraph",
"Properties": {
"id": "20210120161018-1mdw4fy",
"updated": "20261024161440"
},
"Children": [
{
"Type": "NodeText",
"Data": "可导入 Markdown 文件或文件夹。迁移其他软件的数据时,可先导出为 Markdown;对于提供专用导入入口的来源,也可使用对应入口。导入前请核对资源文件路径和扩展语法。"
}
]
},
{
"ID": "20261002211013-ujtdqw0",
"Type": "NodeParagraph",
"Properties": {
"id": "20261002211013-ujtdqw0",
"updated": "20261002211013"
},
"Children": [
{
"Type": "NodeText",
"Data": "导入 Markdown 时,[^note]: 形式的脚注定义会转换为独立的有序列表项,正文中的 [^note] 会转换为上标块引用。点击引用可打开定义,通过定义的反向链接可返回引用它的正文块。脚注中的多个段落会保留在同一列表项内。没有对应定义的脚注不生成块引用,代码示例和转义的脚注语法保留为字面文本。"
}
]
},
{
"ID": "20220317221825-c0ydyo2",
"Type": "NodeParagraph",
"Properties": {
"id": "20220317221825-c0ydyo2",
"updated": "20220317223800"
},
"Children": [
{
"Type": "NodeText",
"Data": "导入时如果遇到形如 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": ""
},
{
"Type": "NodeText",
"Data": " 的图片语法(本地相对路径),则思源会将 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "images/bar.png"
},
{
"Type": "NodeText",
"Data": " 转换为"
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20200915214115-42b8zma",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "资源文件"
},
{
"Type": "NodeText",
"Data": "。但是如果是 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": ".images/bar.png"
},
{
"Type": "NodeText",
"Data": " 则不会转换,因为 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "."
},
{
"Type": "NodeText",
"Data": " 开头的路径文件属于隐藏文件,思源不会进行处理。"
}
]
},
{
"ID": "20240426184018-e8mz594",
"Type": "NodeParagraph",
"Properties": {
"id": "20240426184018-e8mz594",
"updated": "20261024163013"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果需要识别一些扩展语法(比如 上标 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "^foo^"
},
{
"Type": "NodeText",
"Data": "、下标 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "~foo~"
},
{
"Type": "NodeText",
"Data": "、标签 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "#foo#"
},
{
"Type": "NodeText",
"Data": " 和公式 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "$foo$"
},
{
"Type": "NodeText",
"Data": " 等),请打开 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "设置"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "编辑器"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Markdown 语法"
},
{
"Type": "NodeText",
"Data": " 相关开关。"
}
]
},
{
"ID": "20220511184340-6w8o7kg",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20220511184340-6w8o7kg",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeText",
"Data": "Data"
}
]
},
{
"ID": "20220511184359-mea18d0",
"Type": "NodeParagraph",
"Properties": {
"id": "20220511184359-mea18d0",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeText",
"Data": "桌面端和移动端均可在 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "设置"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "应用"
},
{
"Type": "NodeText",
"Data": " 中进行数据导入和导出。该导出会完整复制 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "工作空间/data/"
},
{
"Type": "NodeText",
"Data": " 文件夹并打包为 ZIP 压缩包。"
}
]
},
{
"ID": "20220511184941-kxdmrtc",
"Type": "NodeParagraph",
"Properties": {
"id": "20220511184941-kxdmrtc",
"updated": "20220511185824"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "导入 Data"
},
{
"Type": "NodeText",
"Data": " 功能仅支持处理以上步骤导出的 Data 压缩包。导入按压缩包中的文件路径复制到当前 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "工作空间/data/"
},
{
"Type": "NodeText",
"Data": " 文件夹:"
}
]
},
{
"ID": "20220511185356-4tsyhu8",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20220511185356-4tsyhu8",
"updated": "20220511185914"
},
"Children": [
{
"ID": "20220511185357-fw8xf5g",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20220511185357-fw8xf5g",
"updated": "20220511185459"
},
"Children": [
{
"ID": "20220511185357-gp14zkk",
"Type": "NodeParagraph",
"Properties": {
"id": "20220511185357-gp14zkk",
"updated": "20220511185459"
},
"Children": [
{
"Type": "NodeText",
"Data": "重复的文件进行覆盖"
}
]
}
]
},
{
"ID": "20220511185359-3ygpkgm",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20220511185359-3ygpkgm",
"updated": "20220511185502"
},
"Children": [
{
"ID": "20220511185359-26rtw7w",
"Type": "NodeParagraph",
"Properties": {
"id": "20220511185359-26rtw7w",
"updated": "20220511185502"
},
"Children": [
{
"Type": "NodeText",
"Data": "不存在的文件进行新增"
}
]
}
]
},
{
"ID": "20220511185425-lrj9vu4",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20220511185425-lrj9vu4",
"updated": "20220511185914"
},
"Children": [
{
"ID": "20220511185425-zhhh2s5",
"Type": "NodeParagraph",
"Properties": {
"id": "20220511185425-zhhh2s5",
"updated": "20220511185914"
},
"Children": [
{
"Type": "NodeText",
"Data": "已有的文件不做任何处理"
}
]
}
]
}
]
},
{
"ID": "20220511185359-zc5av9q",
"Type": "NodeParagraph",
"Properties": {
"id": "20220511185359-zc5av9q",
"updated": "20220511185406"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "tag",
"TextMarkTextContent": "注意"
},
{
"Type": "NodeText",
"Data": ":使用前请务必留意,避免已有数据被覆盖无法恢复。"
}
]
},
{
"ID": "20261020220502-6qiv57v",
"Type": "NodeParagraph",
"Properties": {
"id": "20261020220502-6qiv57v",
"updated": "20261020225315"
},
"Children": [
{
"Type": "NodeText",
"Data": "Data.zip 可以直接更新当前工作空间,无需新建工作空间。导入前会先分析压缩包,加密笔记本发生冲突时,可选择默认的“跳过冲突”、“覆盖冲突”或取消。导入结果会在界面重载前列出已跳过的笔记本 ID。提交前可以取消;提交期间无法取消或关闭导入对话框。"
}
]
},
{
"ID": "20261020220502-gnmpswl",
"Type": "NodeParagraph",
"Properties": {
"id": "20261020220502-gnmpswl",
"updated": "20261020220502"
},
"Children": [
{
"Type": "NodeText",
"Data": "导入加密内容需要输入兼容的主密码。改密前的备份可通过兼容的历史密钥读取,不会回退当前密码。加密状态或数据密钥不同的笔记本不能直接合并。覆盖只替换相同路径,保留目标独有的文件,不会传播删除;导入后的加密笔记本保持锁定,需要重新解锁。"
}
]
},
{
"ID": "20261020220502-l5uc6wm",
"Type": "NodeParagraph",
"Properties": {
"id": "20261020220502-l5uc6wm",
"updated": "20261020225315"
},
"Children": [
{
"Type": "NodeText",
"Data": "导入先验证选中内容,再写入数据,失败或中断时可以回滚。上传原件、被覆盖文件和密钥材料保存在工作空间的 conf/data-imports/ 目录;在核对导入内容及所需历史之前,请保留这些恢复文件。恢复失败时暂停写入和同步,直到恢复成功。未提交的预检在 30 分钟后过期,并在启动或下一次导入时清理,过期后仍可取消;已提交批次的恢复文件继续保留。"
}
]
},
{
"ID": "20260614200806-k4r9npq",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20260614200806-k4r9npq",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeText",
"Data": ".sy.zip"
}
]
},
{
"ID": "20260614200806-6qg8yqx",
"Type": "NodeParagraph",
"Properties": {
"id": "20260614200806-6qg8yqx",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": ".sy.zip"
},
{
"Type": "NodeText",
"Data": " 是思源原生文档格式。在文档树中选择目标笔记本或文档后,使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "导入"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "SiYuan .sy.zip"
},
{
"Type": "NodeText",
"Data": " 选择压缩包。导入后的文档会保留内容、设置中指定包含的子文档、资源文件和块属性。"
}
]
},
{
"ID": "20201229120428-9k34lga",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20201229120428-9k34lga",
"updated": "20261016200946"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "## "
},
{
"Type": "NodeText",
"Data": "导出"
}
]
},
{
"ID": "20210120154937-u6g9q4l",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20210120154937-u6g9q4l",
"updated": "20250115151439"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### "
},
{
"Type": "NodeText",
"Data": "编辑内容复制"
}
]
},
{
"ID": "20201229120428-uk4lxtt",
"Type": "NodeParagraph",
"Properties": {
"id": "20201229120428-uk4lxtt",
"updated": "20250115151037"
},
"Children": [
{
"Type": "NodeText",
"Data": "选择内容后使用复制快捷键 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Ctrl"
},
{
"Type": "NodeText",
"Data": "+"
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "C"
},
{
"Type": "NodeText",
"Data": " 即可,剪切板中是标准 Markdown 文本。"
}
]
},
{
"ID": "20220317223052-qrqe13g",
"Type": "NodeParagraph",
"Properties": {
"id": "20220317223052-qrqe13g",
"updated": "20250115151439"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果你需要复制 HTML 内容,请在编辑器页签右上角的 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "︙"
},
{
"Type": "NodeText",
"Data": " 菜单中的 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "模式切换"
},
{
"Type": "NodeText",
"Data": " 切换到 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "导出预览"
},
{
"Type": "NodeText",
"Data": " 后再进行复制。"
}
]
},
{
"ID": "20210120154948-gl0hxz6",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20210120154948-gl0hxz6",
"updated": "20261016200946"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### "
},
{
"Type": "NodeText",
"Data": "全文导出"
}
]
},
{
"ID": "20201229120428-ysyvyt4",
"Type": "NodeParagraph",
"Properties": {
"id": "20201229120428-ysyvyt4",
"updated": "20260426175436"
},
"Children": [
{
"Type": "NodeText",
"Data": "在文档上选择文档后右键选择 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "导出"
},
{
"Type": "NodeText",
"Data": " 或者编辑器页签右上角的 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "︙"
},
{
"Type": "NodeText",
"Data": " 菜单中选择 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "导出"
},
{
"Type": "NodeText",
"Data": ":"
}
]
},
{
"ID": "20201229120428-sokahme",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20201229120428-sokahme",
"updated": "20260614200822"
},
"Children": [
{
"ID": "20201229120428-3zal4fw",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20201229120428-3zal4fw",
"updated": "20201229120428"
},
"Children": [
{
"ID": "20210302223614-aj1pupk",
"Type": "NodeParagraph",
"Properties": {
"id": "20210302223614-aj1pupk",
"updated": "20211130233541"
},
"Children": [
{
"Type": "NodeText",
"Data": "Markdown"
}
]
}
]
},
{
"ID": "20201229120428-rbzugkm",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20201229120428-rbzugkm",
"updated": "20201229120428"
},
"Children": [
{
"ID": "20210302223614-6mzkgcu",
"Type": "NodeParagraph",
"Properties": {
"id": "20210302223614-6mzkgcu",
"updated": "20210302223614"
},
"Children": [
{
"Type": "NodeText",
"Data": "PDF"
}
]
}
]
},
{
"ID": "20210120155702-mhp0c0s",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20210120155702-mhp0c0s",
"updated": "20210120155702"
},
"Children": [
{
"ID": "20210302223614-zc7v8ds",
"Type": "NodeParagraph",
"Properties": {
"id": "20210302223614-zc7v8ds",
"updated": "20210302223614"
},
"Children": [
{
"Type": "NodeText",
"Data": "HTML"
}
]
}
]
},
{
"ID": "20220317223347-co3uufi",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20220317223347-co3uufi",
"updated": "20220317223356"
},
"Children": [
{
"ID": "20220317223347-842ufju",
"Type": "NodeParagraph",
"Properties": {
"id": "20220317223347-842ufju",
"updated": "20220317223356"
},
"Children": [
{
"Type": "NodeText",
"Data": "Word .docx"
}
]
}
]
},
{
"ID": "20260614200822-ltvmpym",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20260614200822-ltvmpym",
"updated": "20260614200822"
},
"Children": [
{
"ID": "20260614200822-0hldom5",
"Type": "NodeParagraph",
"Properties": {
"id": "20260614200822-0hldom5",
"updated": "20260614200822"
},
"Children": [
{
"Type": "NodeText",
"Data": ".sy.zip"
}
]
}
]
}
]
},
{
"ID": "20260614200829-qq1g8hc",
"Type": "NodeParagraph",
"Properties": {
"id": "20260614200829-qq1g8hc",
"updated": "20260809232000"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": ".sy.zip"
},
{
"Type": "NodeText",
"Data": " 格式会保留文档内容、资源文件和块属性。是否包含子文档和关联文档取决于 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "设置"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "导出"
},
{
"Type": "NodeText",
"Data": " 中的对应选项。"
}
]
},
{
"ID": "20261015174914-gajl5h2",
"Type": "NodeParagraph",
"Properties": {
"id": "20261015174914-gajl5h2",
"updated": "20261015174914"
},
"Children": [
{
"Type": "NodeText",
"Data": "在“导出为图片”对话框中,关闭“导出题头图”可排除题头图并保留正文图片。此开关默认开启,独立于“添加文档标题”,会记住选择,并应用于预览、导出文件和对话框内的“复制为 PNG”。原始文档不受影响。"
}
]
},
{
"ID": "20261016200946-dh7sl8v",
"Type": "NodeParagraph",
"Properties": {
"id": "20261016200946-dh7sl8v",
"updated": "20261016200946"
},
"Children": [
{
"Type": "NodeText",
"Data": "PDF 导出也支持独立的“导出题头图”开关,默认开启,与图片导出分别记住选择,不影响文档标题或正文图片。桌面端在 PDF 预览窗口中设置,导出时保存选择;移动端在打印设置对话框中设置,确认时保存选择。"
}
]
},
{
"ID": "20220317224209-iw0imsf",
"Type": "NodeParagraph",
"Properties": {
"id": "20220317224209-iw0imsf",
"updated": "20220317225002"
},
"Children": [
{
"Type": "NodeText",
"Data": "在 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "设置"
},
{
"Type": "NodeText",
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "导出"
},
{
"Type": "NodeText",
"Data": " 中有一些选项可以进行导出处理配置,细节请参考该界面上的提示信息。"
}
]
}
]
}