Skip to content

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

21.9 KB
Raw Blame
{
	"ID": "20200924100808-j9sddk9",
	"Spec": "2",
	"Type": "NodeDocument",
	"Properties": {
		"id": "20200924100808-j9sddk9",
		"title": "Import and Export",
		"type": "doc",
		"updated": "20261024164212"
	},
	"Children": [
		{
			"ID": "20220317223639-oaxmz7d",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20220317223639-oaxmz7d",
				"updated": "20261024164212"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Import"
				}
			]
		},
		{
			"ID": "20220511185728-as165rt",
			"Type": "NodeHeading",
			"HeadingLevel": 3,
			"Properties": {
				"id": "20220511185728-as165rt",
				"updated": "20261024164212"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Markdown"
				}
			]
		},
		{
			"ID": "20220317223639-vfe5e6w",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20220317223639-vfe5e6w",
				"updated": "20261024161440"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Import Markdown files or folders. When migrating from another application, you can export its data as Markdown or use a dedicated importer where available. Check asset paths and extended syntax before importing."
				}
			]
		},
		{
			"ID": "20261002211013-n0y2i86",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261002211013-n0y2i86",
				"updated": "20261024164212"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "When importing Markdown, footnote definitions such as [^note]: become separate numbered list items, and references such as [^note] become superscript block references. Click a reference to open its definition, and use the definition’s backlinks to return to the referring blocks."
				}
			]
		},
		{
			"ID": "20261024164212-a5zbefj",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261024164212-a5zbefj",
				"updated": "20261024164212"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Multiple paragraphs in a definition stay in the same list item. Undefined footnotes do not become block references. Code examples and escaped footnote syntax remain literal text."
				}
			]
		},
		{
			"ID": "20220317223639-u3fan6w",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20220317223639-u3fan6w",
				"updated": "20220317223836"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "If the image syntax (local relative path) like "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "![foo](images/bar.png)"
				},
				{
					"Type": "NodeText",
					"Data": "​ is encountered during import, SiYuan will convert "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "images/bar.png"
				},
				{
					"Type": "NodeText",
					"Data": "​ into "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "block-ref",
					"TextMarkBlockRefID": "20200924100744-br924ar",
					"TextMarkBlockRefSubtype": "s",
					"TextMarkTextContent": "assets"
				},
				{
					"Type": "NodeText",
					"Data": ". But if it is "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".images/bar.png"
				},
				{
					"Type": "NodeText",
					"Data": "​, it will not be converted, because the path files starting with "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "."
				},
				{
					"Type": "NodeText",
					"Data": "​ are hidden files, SiYuan will not process them."
				}
			]
		},
		{
			"ID": "20240426184519-mwc558q",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20240426184519-mwc558q",
				"updated": "20261024163013"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "If you need to recognize some extended syntax (such as superscript "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "^foo^"
				},
				{
					"Type": "NodeText",
					"Data": "​, subscript "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "~foo~"
				},
				{
					"Type": "NodeText",
					"Data": "​, tag "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "#foo#"
				},
				{
					"Type": "NodeText",
					"Data": "​ and formula "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "$foo$"
				},
				{
					"Type": "NodeText",
					"Data": "​, etc.), please open "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Settings"
				},
				{
					"Type": "NodeText",
					"Data": " - "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Editor"
				},
				{
					"Type": "NodeText",
					"Data": " - "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Markdown syntax"
				},
				{
					"Type": "NodeText",
					"Data": " related switches."
				}
			]
		},
		{
			"ID": "20220511185726-nlnhhsh",
			"Type": "NodeHeading",
			"HeadingLevel": 3,
			"Properties": {
				"id": "20220511185726-nlnhhsh",
				"updated": "20261024164212"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Data"
				}
			]
		},
		{
			"ID": "20220511185726-fsg9r0c",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20220511185726-fsg9r0c",
				"updated": "20260809232000"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "On both desktop and mobile, data can be imported and exported from "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Settings"
				},
				{
					"Type": "NodeText",
					"Data": " - "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "App"
				},
				{
					"Type": "NodeText",
					"Data": ". This export copies and packages the complete "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "workspace/data/"
				},
				{
					"Type": "NodeText",
					"Data": " directory as a ZIP archive."
				}
			]
		},
		{
			"ID": "20220511185726-02j5ggo",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20220511185726-02j5ggo",
				"updated": "20220511185841"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "The "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Import Data"
				},
				{
					"Type": "NodeText",
					"Data": " function only supports processing the data archive exported in the above steps. The import is copied to the current "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "workspace/data/"
				},
				{
					"Type": "NodeText",
					"Data": " folder according to the file path in the archive:"
				}
			]
		},
		{
			"ID": "20220511185726-sx3r3js",
			"Type": "NodeList",
			"ListData": {},
			"Properties": {
				"id": "20220511185726-sx3r3js",
				"updated": "20220511185920"
			},
			"Children": [
				{
					"ID": "20220511185726-i8g7pfi",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20220511185726-i8g7pfi",
						"updated": "20220511185726"
					},
					"Children": [
						{
							"ID": "20220511185726-b90qzam",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20220511185726-b90qzam",
								"updated": "20220511185726"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "Duplicate files are overwritten"
								}
							]
						}
					]
				},
				{
					"ID": "20220511185726-i2corj3",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20220511185726-i2corj3",
						"updated": "20220511185726"
					},
					"Children": [
						{
							"ID": "20220511185726-y1rygj1",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20220511185726-y1rygj1",
								"updated": "20220511185726"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "Add files that do not exist"
								}
							]
						}
					]
				},
				{
					"ID": "20220511185726-8ujetzq",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20220511185726-8ujetzq",
						"updated": "20220511185920"
					},
					"Children": [
						{
							"ID": "20220511185726-d1r8ez6",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20220511185726-d1r8ez6",
								"updated": "20220511185920"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "Do not do any processing for existing files"
								}
							]
						}
					]
				}
			]
		},
		{
			"ID": "20220511185726-1r88nxx",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20220511185726-1r88nxx",
				"updated": "20220511185726"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "​"
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "tag",
					"TextMarkTextContent": "Note"
				},
				{
					"Type": "NodeText",
					"Data": "​: Please pay attention before use, to avoid existing data being overwritten and unrecoverable."
				}
			]
		},
		{
			"ID": "20261020220502-tsupjxf",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261020220502-tsupjxf",
				"updated": "20261020225315"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Data.zip can update the current workspace without creating another workspace. The archive is analyzed before importing. If encrypted notebooks conflict, choose Skip conflicts (the default), Overwrite conflicts or Cancel. The result lists skipped notebook IDs before the interface reloads. Cancel is available before submission; the dialog cannot be canceled or closed while the import is being committed."
				}
			]
		},
		{
			"ID": "20261020220502-v98hoer",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261020220502-v98hoer",
				"updated": "20261024164212"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Importing encrypted content requires a compatible master password. A backup from before a password change can be read with compatible historical keys without reverting the current password. Notebooks with different encryption states or data keys cannot be merged directly."
				}
			]
		},
		{
			"ID": "20261024164212-tqz2gh4",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261024164212-tqz2gh4",
				"updated": "20261024164212"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Overwrite replaces matching paths and retains destination-only files; it does not propagate deletions. Imported encrypted notebooks remain locked until you unlock them again."
				}
			]
		},
		{
			"ID": "20261020220502-9jmeu5c",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261020220502-9jmeu5c",
				"updated": "20261024164212"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "The import verifies selected content before writing and can roll back a failed or interrupted commit. The original archive, replaced files and key material remain in the workspace’s conf/data-imports/ directory."
				}
			]
		},
		{
			"ID": "20261024164212-i079vnj",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261024164212-i079vnj",
				"updated": "20261024164212"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Keep these recovery files until you have verified the imported content and required history. If recovery fails, writes and sync remain paused until recovery succeeds. Unsubmitted preparations expire after 30 minutes and are reclaimed on startup or the next import; expired preparations can still be canceled. Committed recovery files remain available."
				}
			]
		},
		{
			"ID": "20260614201131-zgav44f",
			"Type": "NodeHeading",
			"HeadingLevel": 3,
			"Properties": {
				"id": "20260614201131-zgav44f",
				"updated": "20260809232000"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": ".sy.zip"
				}
			]
		},
		{
			"ID": "20260614201131-kkxt385",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260614201131-kkxt385",
				"updated": "20260809232000"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "A "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".sy.zip"
				},
				{
					"Type": "NodeText",
					"Data": " file is SiYuan's native document format. Select the target notebook or document in the document tree, then use "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Import"
				},
				{
					"Type": "NodeText",
					"Data": " - "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "SiYuan .sy.zip"
				},
				{
					"Type": "NodeText",
					"Data": " to choose the archive. The imported document retains its content, included subdocuments, assets, and block attributes."
				}
			]
		},
		{
			"ID": "20220317223639-0fnf9vp",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20220317223639-0fnf9vp",
				"updated": "20261016200946"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Export"
				}
			]
		},
		{
			"ID": "20220317223639-g5061h8",
			"Type": "NodeHeading",
			"HeadingLevel": 3,
			"Properties": {
				"id": "20220317223639-g5061h8",
				"updated": "20250115151427"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Edit content copy"
				}
			]
		},
		{
			"ID": "20220317223639-hrd8l6o",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20220317223639-hrd8l6o",
				"updated": "20250115151031"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "After selecting the content, use the copy shortcut "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Ctrl"
				},
				{
					"Type": "NodeText",
					"Data": "​+"
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "C"
				},
				{
					"Type": "NodeText",
					"Data": "​, and the clipboard is standard Markdown text."
				}
			]
		},
		{
			"ID": "20220317223639-w6wj4mq",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20220317223639-w6wj4mq",
				"updated": "20250115151427"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "If you need to copy HTML content, please switch to "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Export Preview"
				},
				{
					"Type": "NodeText",
					"Data": "​ from "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Toogle Mode"
				},
				{
					"Type": "NodeText",
					"Data": "​ in the "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "︙"
				},
				{
					"Type": "NodeText",
					"Data": "​ menu in the upper right corner of the editor tab before copying."
				}
			]
		},
		{
			"ID": "20220317223639-8217o1r",
			"Type": "NodeHeading",
			"HeadingLevel": 3,
			"Properties": {
				"id": "20220317223639-8217o1r",
				"updated": "20261016200946"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "Full text export"
				}
			]
		},
		{
			"ID": "20220317223639-otxjla4",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20220317223639-otxjla4",
				"updated": "20260426175834"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "After selecting the document on the document panel, right-click and select "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Export"
				},
				{
					"Type": "NodeText",
					"Data": "​ or select "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Export"
				},
				{
					"Type": "NodeText",
					"Data": "​ from the "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "︙"
				},
				{
					"Type": "NodeText",
					"Data": "​ menu in the upper right corner of the editor tab:"
				}
			]
		},
		{
			"ID": "20220317223639-vhdy88m",
			"Type": "NodeList",
			"ListData": {},
			"Properties": {
				"id": "20220317223639-vhdy88m",
				"updated": "20220317224017"
			},
			"Children": [
				{
					"ID": "20220317223639-du4a7d2",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20220317223639-du4a7d2",
						"updated": "20220317223639"
					},
					"Children": [
						{
							"ID": "20220317223639-7k2yxwr",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20220317223639-7k2yxwr",
								"updated": "20220317224009"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "Markdown"
								}
							]
						}
					]
				},
				{
					"ID": "20220317224009-wqfhw3y",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20220317224009-wqfhw3y",
						"updated": "20220317224009"
					},
					"Children": [
						{
							"ID": "20220317224009-khgfqoe",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20220317224009-khgfqoe",
								"updated": "20220317224009"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "PDF"
								}
							]
						}
					]
				},
				{
					"ID": "20220317223639-kqjyqge",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20220317223639-kqjyqge",
						"updated": "20220317223639"
					},
					"Children": [
						{
							"ID": "20220317223639-nurkpus",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20220317223639-nurkpus",
								"updated": "20220317224015"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "HTML"
								}
							]
						}
					]
				},
				{
					"ID": "20220317224015-1a3olya",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20220317224015-1a3olya",
						"updated": "20220317224017"
					},
					"Children": [
						{
							"ID": "20220317224015-kqwmx81",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20220317224015-kqwmx81",
								"updated": "20220317224017"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": "Word .docx"
								}
							]
						}
					]
				},
				{
					"ID": "20260614201147-eesmuaj",
					"Type": "NodeListItem",
					"ListData": {
						"BulletChar": 42,
						"Marker": "Kg=="
					},
					"Properties": {
						"id": "20260614201147-eesmuaj",
						"updated": "20260614201147"
					},
					"Children": [
						{
							"ID": "20260614201147-378bp5u",
							"Type": "NodeParagraph",
							"Properties": {
								"id": "20260614201147-378bp5u",
								"updated": "20260614201147"
							},
							"Children": [
								{
									"Type": "NodeText",
									"Data": ".sy.zip"
								}
							]
						}
					]
				}
			]
		},
		{
			"ID": "20260614201156-jt25t7h",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20260614201156-jt25t7h",
				"updated": "20260809232000"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "The "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": ".sy.zip"
				},
				{
					"Type": "NodeText",
					"Data": " format preserves document content, assets, and block attributes. Whether subdocuments and related documents are included depends on the corresponding options in "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Settings"
				},
				{
					"Type": "NodeText",
					"Data": " - "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Export"
				},
				{
					"Type": "NodeText",
					"Data": "."
				}
			]
		},
		{
			"ID": "20261015174914-f8d6sn4",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261015174914-f8d6sn4",
				"updated": "20261015174914"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "In the Export as image dialog, turn off Export title image to exclude the title image while preserving body images. This option is enabled by default, is independent of Add document title, remembers your choice, and applies to the preview, exported file, and Copy as PNG in the dialog. The original document is unchanged."
				}
			]
		},
		{
			"ID": "20261016200946-x83csqx",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261016200946-x83csqx",
				"updated": "20261016200946"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "PDF export also has an independent Export title image switch. It is enabled by default and remembers your choice separately from image exports, without affecting the document title or body images. Set it in the PDF preview window on desktop or in the print settings dialog on mobile. Desktop saves the choice when exporting; mobile saves it when confirming the print settings."
				}
			]
		},
		{
			"ID": "20220317225021-4jcnk35",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20220317225021-4jcnk35",
				"updated": "20220317225021"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "There are some options in "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Settings"
				},
				{
					"Type": "NodeText",
					"Data": " - "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "kbd",
					"TextMarkTextContent": "Export"
				},
				{
					"Type": "NodeText",
					"Data": " to configure export processing, please refer to the prompt information on this interface for details."
				}
			]
		}
	]
}