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.js CHANGED
@@ -15633,6 +15633,7 @@ function derivePlaintext(html) {
15633
15633
  ]
15634
15634
  }).trim();
15635
15635
  }
15636
+ var PLAIN_TEXT = { noEscape: true };
15636
15637
  async function renderTemplate(template, ctx, opts = {}) {
15637
15638
  const hb = makeHandlebars(opts.helpers);
15638
15639
  const subject = hb.compile(template.subject)(ctx);
@@ -15644,7 +15645,7 @@ async function renderTemplate(template, ctx, opts = {}) {
15644
15645
  const compiled = await compileTemplate(template.body.mjml);
15645
15646
  html = hb.compile(compiled.html)(ctx);
15646
15647
  }
15647
- const plainText = template.body.plainText ? hb.compile(template.body.plainText)(ctx) : derivePlaintext(html);
15648
+ const plainText = template.body.plainText ? hb.compile(template.body.plainText, PLAIN_TEXT)(ctx) : derivePlaintext(html);
15648
15649
  return {
15649
15650
  subject,
15650
15651
  preheader,