/** * Small HTML helpers for Kit email bodies. These emit generic Liquid/HTML — * they do not encode a particular sender, list, or template. */ export function buildLiquidGreeting(options: { withName: string; withoutName: string }): string { return `
{% if subscriber.first_name != blank %}${options.withName}{% else %}${options.withoutName}{% endif %}
` } export function buildParagraph(html: string): string { return `${html}
` } export function buildLinkedImage(options: { href: string; src: string; alt?: string }): string { const alt = options.alt ?? '' return `` } export function buildLinkedImageBlock(options: { href: string src: string alt?: string caption?: string }): string { const alt = options.alt ?? '' const figcaption = options.caption ? `