You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-15Lines changed: 3 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,13 @@ Read the documentation [here](https://md2re.codeskills.dev/)
6
6
7
7
md-to-react-email is a lightweight utility for converting [Markdown](https://www.markdownguide.org/) into valid [React-email](https://react.email) templates. This tool simplifies the process of creating responsive and customizable email templates by leveraging the power of React and Markdown.
8
8
9
+
**Note**: Starting from `version 4`, `md-to-react-email` uses [`Marked`](https://marked.js.org/) for markdown transformation. see all changes [here](/CHANGELOG.md)
10
+
9
11
### Support
10
12
11
13
The following markdown flavors are supported
12
14
13
15
- Offical markdown flavour
14
-
- Github flavoured markdown
15
16
16
17
## Installation
17
18
@@ -35,7 +36,6 @@ npm install md-to-react-email
35
36
36
37
-`camelToKebabCase`: converts strings from camelcase ['thisIsCamelCase'] to kebab case ['this-is-kebab-case']
37
38
-`parseCssInJsToInlineCss`: converts css styles from css-in-js to inline css e.g fontSize: "18px" => font-size: 18px;
38
-
-`parseMarkdownToReactEmail`: parses markdown to a valid react-email string that can be copied and pasted directly into your codebase
39
39
-`parseMarkdownToReactEmailJSX`: parses markdown to valid react-email JSX for the client (i.e the browser)
40
40
41
41
### Components:
@@ -75,18 +75,6 @@ npm install md-to-react-email
75
75
76
76
```
77
77
78
-
- For code generation (copy and paste)
79
-
80
-
```
81
-
import {parseMarkdownToReactEmail} from "md-to-react-email"
console.log(parsedReactMail) // `<Heading as="h1" style={...styles go here...}></Heading>`
87
-
88
-
```
89
-
90
78
## Components
91
79
92
80
md-to-react-email contains pre-defined react-email and html components for the email template structure and styling. You can modify these components to customize the look and feel of your email template.
@@ -98,7 +86,7 @@ The following components are available for customization:
0 commit comments