--- title: "Markdown" sidebarTitle: "Markdown" description: "A Markdown component that converts markdown to valid react-email template code" "og:image": "https://react.email/static/covers/markdown.png" icon: "file-code" --- import Support from '/snippets/support.mdx' ## Install Install component from your command line. ```sh npm npm install react-email -E ``` ```sh yarn yarn add react-email -E ``` ```sh pnpm pnpm add react-email -E ``` ## Getting started Add the component to your email template. Include styles where needed. ```jsx import { Markdown, Html } from "react-email"; const Email = () => { return ( {`# Hello, World!`} {/* OR */} ); }; ``` ## Props Contains the markdown content that will be rendered in the email template Provide custom styles for the containing div that wraps the markdown content Provide custom styles for the corresponding html element (p, h1, h2, etc.) Note: Passing a custom style for an element overrides the default styles.