mailery 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/testing.cjs CHANGED
@@ -15646,6 +15646,7 @@ function derivePlaintext(html) {
15646
15646
  ]
15647
15647
  }).trim();
15648
15648
  }
15649
+ var PLAIN_TEXT = { noEscape: true };
15649
15650
  async function renderTemplate(template, ctx, opts = {}) {
15650
15651
  const hb = makeHandlebars(opts.helpers);
15651
15652
  const subject = hb.compile(template.subject)(ctx);
@@ -15657,7 +15658,7 @@ async function renderTemplate(template, ctx, opts = {}) {
15657
15658
  const compiled = await compileTemplate(template.body.mjml);
15658
15659
  html = hb.compile(compiled.html)(ctx);
15659
15660
  }
15660
- const plainText = template.body.plainText ? hb.compile(template.body.plainText)(ctx) : derivePlaintext(html);
15661
+ const plainText = template.body.plainText ? hb.compile(template.body.plainText, PLAIN_TEXT)(ctx) : derivePlaintext(html);
15661
15662
  return {
15662
15663
  subject,
15663
15664
  preheader,