substack_add_code_block
Insert code blocks into Substack drafts with syntax highlighting and optional captions for technical content.
Instructions
Add a code block to a draft
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | Yes | ||
| code | Yes | Code content | |
| language | No | Programming language | |
| filename | No | Optional filename | |
| caption | No | Optional caption/explanation |