SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

Document → Export Markdown

AI-generated

Overview

This node operation exports a document from the SiYuan note-taking system as Markdown. It is useful for workflows that require extracting document content in Markdown format for further processing, sharing, or backup. For example, users can automate exporting notes to Markdown files for integration with other tools or version control.

Use Case Examples

  1. Export a document by its unique ID to Markdown format for backup.
  2. Automate exporting meeting notes as Markdown to share with a team.
  3. Extract Markdown content from a document to use in a static site generator.

Properties

Name Meaning
Document ID The unique ID of the document to export as Markdown.

Output

JSON

  • markdownContent - The exported Markdown content of the document.

Dependencies

  • Requires SiYuan API URL and API token credentials for authentication.

Troubleshooting

  • Ensure the Document ID is correct and exists in the SiYuan workspace.
  • Verify that the SiYuan API URL and token credentials are correctly configured and valid.
  • Common error: 'SiYuan API URL and Token are required.' means missing or invalid credentials.
  • Unsupported resource or operation errors indicate incorrect resource or operation parameters.

Discussion