Skip to content

Commit

Permalink
Support markdown in blog-update abstract (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-z authored Oct 13, 2024
1 parent cfb6530 commit 38e060f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions emails/blog-update.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
Hr,
Img,
Link,
Markdown,
Text
} from "@react-email/components";
import { z } from "zod";
Expand Down Expand Up @@ -45,12 +46,10 @@ export function WATcloudBlogUpdateEmail(props: WATcloudBlogUpdateEmailProps) {
<Link href={link}>
<Heading as="h2" style={{ marginBottom: 0 }}>{title}</Heading>
</Link>
<Text style={{ color: "#333", marginTop: 0 }}>
<Text style={{ marginTop: 0 }}>
By {author} on {date}
</Text>
<Text style={{ color: "#333" }}>
{abstract}
</Text>
<Markdown markdownContainerStyles={{ color: "#333", fontSize: "14px", lineHeight: "24px" }}>{abstract}</Markdown>
<Link href={link}>Read more →</Link>
<Hr style={{ marginTop: "20px", marginBottom: "20px" }} />
<Text style={{ color: "#666", fontSize: "12px" }}>You are receiving this email because you are subscribed to the WATcloud blog.</Text>
Expand Down

0 comments on commit 38e060f

Please sign in to comment.