Tchop: Markdown to Post
AI-generatedSummary
Convert markdown text into a JSON structure of content blocks compatible with Tchop Create Post, uploading and embedding any referenced images automatically.
Inputs
- Markdown (required) — The markdown text to convert to content blocks.
- Metadata — Optional metadata key-value pairs to include alongside the content blocks.
Output shape
a single JSON object containing 'contentBlocks' (an array of blocks representing the parsed markdown) and an optional '_meta' object with metadata entries.
Images referenced in the markdown (via standard
syntax) are automatically uploaded to Tchop and replaced with internal image IDs in the resulting content blocks. Errors during image upload or processing will cause the node to throw unless configured to continue on failure.
Examples
Example 1: Convert markdown with headers, text, code, lists, quotes, and images into Tchop content blocks for creating a post.
Set 'Markdown' with the markdown string, optionally add metadata entries under 'Metadata'. Use outputs to pass the content blocks to subsequent Tchop nodes.