Render an email
renderConverts emailmd markdown into email-safe HTML, returns plain-text part, metadata, and a live preview URL. Also reports non-fatal repairs and can minify to stay under Gmail's 102KB limit.
Instructions
Render emailmd markdown into email-safe HTML. Returns html (the complete email document), text (the plain-text MIME part), meta (frontmatter), warnings (non-fatal repairs made while rendering; aim for none), htmlBytes, and previewUrl (a live browser preview of this exact document to share with the user).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minify | No | Minify the HTML. Recommended for sending; helps stay under Gmail's 102KB clip limit. | |
| markdown | Yes | The emailmd markdown document, optionally starting with YAML frontmatter. | |
| partials | No | Named markdown partials spliced in wherever the document says "::: include <name>". |