SiYuan icon

SiYuan

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

Block → Get Kramdown

AI-generated

Overview

This node operation retrieves the Kramdown (a Markdown variant) content of a specific block within a SiYuan document. It is useful for workflows that need to extract or manipulate the Markdown content of blocks, such as exporting content, processing text for AI analysis, or integrating with other Markdown-based tools.

Use Case Examples

  1. Extract the Kramdown content of a block to convert it into HTML or other formats.
  2. Retrieve the Markdown content of a block for text analysis or AI processing.
  3. Use the block's Kramdown content to synchronize with external Markdown editors or systems.

Properties

Name Meaning
Block ID The unique identifier of the block whose Kramdown content is to be retrieved.

Output

JSON

  • kramdown - The Kramdown (Markdown) content of the specified block.

Dependencies

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

Troubleshooting

  • Ensure the Block ID is correct and exists in the SiYuan workspace to avoid errors.
  • Verify that the SiYuan API URL and Token credentials are correctly set and valid.
  • If the node throws an unsupported resource error, confirm that the resource parameter is set to 'Block' and operation to 'Get Kramdown'.

Discussion