fix(email-renderer): honor explicit heading typography
This commit is contained in:
1 parent
0a17867ae7
commit
62d1dd8bf3
4 files changed
+16
-3
No files matched your search
@@ -340,7 +340,7 @@ export const headingBlock = leaf(
|
||||
{
|
||||
emailHtml: ({ node }) =>
|
||||
emailCell(
|
||||
`<h${attrs(node).level} style="font-family:inherit;margin:0 0 16px;">${renderRichText(attrs(node))}</h${attrs(node).level}>`,
|
||||
`<h${attrs(node).level} style="font-family:inherit;margin:0 0 16px;${emailStyleValue("fontSize", styleBase(node, "fontSize")) ? "font-size:inherit;line-height:1.2;" : ""}${emailStyleValue("fontWeight", styleBase(node, "fontWeight")) ? "font-weight:inherit;" : ""}">${renderRichText(attrs(node))}</h${attrs(node).level}>`,
|
||||
node,
|
||||
),
|
||||
ampEmail: ({ node }) =>
|
||||
|
||||
Reference in new issue
Block a user