fix(email-renderer): honor explicit heading typography
Quality / quality (ubuntu-latest) (push) Canceled after 0s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
Clintchiz committed 2026-10-01 22:01:36 +05:30
1 parent 0a17867ae7
commit 62d1dd8bf3
4 files changed
+16 -3

No files matched your search

+1 -1
View File
@@ -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 }) =>