JSPM

@9d8/maily-render

0.0.12
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q41989F
  • License MIT

A fork of a transformer that converts Maily content into HTML email templates.

Package Exports

  • @9d8/maily-render

Readme


@maily-to/render
Transform Maily content into HTML email templates.

Get Maily Editor


Install

Install maily from your command line.

pnpm add @maily-to/render

Getting started

Convert React components into a HTML string.

import { renderSync } from '@maily-to/render';

const html = renderSync({
  type: 'doc',
  content: [
    {
      type: 'paragraph',
      content: [
        {
          type: 'text',
          text: 'Hello World!',
        },
      ],
    },
  ],
});

Contributions

Feel free to submit pull requests, create issues, or spread the word.

License

MIT © Arik Chakma