Overview
md-to-react-email is a lightweight utility designed for converting Markdown into valid JSX for React-email or JSX-email templates. By utilizing the power of React and Markdown, this tool simplifies the creation of responsive and customizable email templates.
Features
- Functions: includes features like converting strings from camelcase to kebab case, parsing CSS styles from CSS-in-JS to inline CSS, and parsing Markdown to valid JSX.
- Components: offers the EmailMarkdown React component for parsing markdown input directly in the code base. Contains pre-defined components like headers, blockquotes, text, links, code blocks, lists, images, and more for email template structure and styling.
Installation
To install md-to-react-email, use one of the following commands based on your package manager:
yarn add md-to-react-email
or
npm install md-to-react-email
Summary
md-to-react-email is a useful utility for converting Markdown into valid JSX, tailored for React-email or JSX-email templates. Its functions and pre-defined components simplify the process of creating email templates with customizable styles. The tool supports various markdown flavors and is compatible with popular email clients like Gmail, Apple Mail, Outlook, Yahoo Mail, HEY Mail, and Super Human.