Skip to content

πŸ“¬ Turn your Markdown files into Responsive HTML E-Mails.

License

Notifications You must be signed in to change notification settings

yandeu/markdown-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 22, 2022
e457725 Β· Dec 22, 2022

History

25 Commits
Dec 22, 2022
Dec 22, 2022
Dec 22, 2022
Dec 22, 2022
Dec 22, 2022
Dec 22, 2022
Dec 22, 2022
Dec 22, 2022
Dec 22, 2022

Repository files navigation

Markdown Mail

Design and serve beautiful email using markdown.

Development

# Create a `mails/` directory with a starter template.
npx markdown-mail --init

# Start the dev server to design your mails.
npx markdown-mail --open true

# Build the mails to the `dist/` folder.
npx markdown-mail --build

API

import { parseMail } from 'markdown-mail'
import { join } from 'path'

// define root directory for your mails
const root = join(process.cwd(), 'mails')

// prase your mails
const mail = await parseMail(root, 'example.md')

// print the mail to the console
console.log(mail)

// types:
// parseMail(root: string, file: string, cache?: boolean): Promise<string>

// "cache" is not implemented yet.

About

πŸ“¬ Turn your Markdown files into Responsive HTML E-Mails.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published