Convert Comark to email HTML

Email renderer for Comark. Turn Markdown into responsive, MJML-compiled HTML — subject, preview text, plain-text fallback and layout components included.
comark-email — Email renderer for Comark

What you can do

    Render to HTML
    One call returns `html`, `text`, `subject` and `previewText` ready for your email provider.
    MJML layout
    Email components map to native MJML tags — buttons, columns and dividers with MJML attributes.
    Frontmatter config
    Subject, preview text, brand color and theme merge from frontmatter and renderer options.
    Locale files
    Hosts pick one markdown file per locale. Bind only the locale key each file owns.
    Comark plugins
    Pass plugins and components from `comark` or `@comark/html`. Unknown components wrap in `mj-raw`.
    Subpath exports
    `comark-email/render` and `comark-email/config` for lower-level MJML and config helpers.
Copyright © 2026