Reference

Exports

Entry points and exports for comark-email, comark-email/render, and comark-email/config.

comark-email

Export
createEmailRendererfactory with shared options.email defaults
renderEmailrender markdown string to { html, text, subject, previewText }
renderEmailFromDocumentrender a pre-parsed Comark document
documentToMjmlComark document → MJML string
documentToTextplain-text fallback from document
compileMjmlMJML string → HTML
typesTypeScript types for options and results

comark-email/render

Export
renderEmailFromDocumentrender from parsed document
documentToMjmldocument → MJML
documentToTextplain-text fallback
compileMjmlMJML → HTML
documentToMjmlJsondocument → MJML JSON tree
serializeMjmlMJML JSON → string

comark-email/config

Export
resolveEmailConfigmerge frontmatter and options into email config
buildMjmlHeadbuild MJML <mj-head> from resolved config
Copyright © 2026