Render an email
renderConvert emailmd markdown into email-safe HTML compatible with Outlook and Gmail. Outputs HTML, plain text, metadata, warnings, and a live preview link.
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>". |