Preview how a body will render
preview_draft_bodyConvert a post body to Substack's document format and see the exact output before saving. Check embeds, paywalls, and nested lists without creating or modifying a draft.
Instructions
Convert a body to Substack's document format and show what it produced, without creating or touching anything. Use this to check that an embed, a paywall or a nested list came out the way you meant before you write it to a draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Post body. Markdown by default. Supported: headings, bold, italic, inline code, strikethrough, links, images, nested lists (any depth, ordered and unordered mixed), fenced code blocks with a language, blockquotes and horizontal rules. Two things worth knowing: - A line containing only a YouTube, X, Spotify or Vimeo URL becomes a real embedded player, not a link. Put the URL inside a sentence if you want a plain link. - Write <paywall> on its own line to mark where the paywall starts. Everything after it is for paying subscribers only. One per post. Markdown tables have no equivalent in Substack's editor, so they are preserved verbatim in a code block rather than being mangled. | |
| body_format | No | How to read `body`. 'auto' detects it and is almost always right. Use 'prosemirror' to send a Substack document directly. |