@maily-to/render
Transform Maily content into HTML email templates.
Install maily
from your command line.
pnpm add @maily-to/render
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!',
},
],
},
],
});
Feel free to submit pull requests, create issues, or spread the word.
MIT © Arik Chakma