diff --git a/server/templateEngine.js b/server/templateEngine.js index 8399fd1..2f51680 100644 --- a/server/templateEngine.js +++ b/server/templateEngine.js @@ -267,7 +267,7 @@ function emailBlock(block, data, theme) { case 'kpi': return `${escapeHtml(interpolate(p.label, data))}${escapeHtml(interpolate(p.value, data))}` case 'button': - return `${escapeHtml(interpolate(p.text, data))}` + return `${escapeHtml(interpolate(p.text, data))}` case 'image': return `` case 'divider': diff --git a/server/templateEngine.test.js b/server/templateEngine.test.js index 52baa63..858fc9d 100644 --- a/server/templateEngine.test.js +++ b/server/templateEngine.test.js @@ -199,6 +199,7 @@ test('theme typography tokens drive email output', () => { }, blocks: [ { type: 'heading', props: { text: 'Heading' } }, + { type: 'text', props: { text: 'Body copy' } }, { type: 'button', props: { text: 'Go', url: 'https://example.com' } } ] }, {})