Preserve global typography and metadata in MJML exports
This commit is contained in:
1 parent
6afffe9f08
commit
4e0f5adb5f
4 files changed
+39
-3
No files matched your search
@@ -140,6 +140,8 @@ export async function renderEmail(
|
||||
direction: options.direction ?? "ltr",
|
||||
countdownImageUrl: options.countdownImageUrl,
|
||||
brandLinkColor: String(source.root.props.linkColor ?? "#2563eb"),
|
||||
emailSubject: String(source.meta.subject),
|
||||
emailPreheader: String(source.meta.preheader ?? ""),
|
||||
rootBlockIds: Object.values(source.root.slots).flat().map(node => node.id),
|
||||
};
|
||||
const [htmlResult, textResult, mjmlResult] = await Promise.all([
|
||||
|
||||
Reference in new issue
Block a user