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/index.cjs CHANGED
@@ -1951,6 +1951,7 @@ function derivePlaintext(html) {
1951
1951
  ]
1952
1952
  }).trim();
1953
1953
  }
1954
+ var PLAIN_TEXT = { noEscape: true };
1954
1955
  async function renderTemplate(template, ctx, opts = {}) {
1955
1956
  const hb = makeHandlebars(opts.helpers);
1956
1957
  const subject = hb.compile(template.subject)(ctx);
@@ -1962,7 +1963,7 @@ async function renderTemplate(template, ctx, opts = {}) {
1962
1963
  const compiled = await compileTemplate(template.body.mjml);
1963
1964
  html = hb.compile(compiled.html)(ctx);
1964
1965
  }
1965
- const plainText = template.body.plainText ? hb.compile(template.body.plainText)(ctx) : derivePlaintext(html);
1966
+ const plainText = template.body.plainText ? hb.compile(template.body.plainText, PLAIN_TEXT)(ctx) : derivePlaintext(html);
1966
1967
  return {
1967
1968
  subject,
1968
1969
  preheader,
@@ -7780,7 +7781,7 @@ var DEDUPE_POLICIES = [
7780
7781
  ];
7781
7782
 
7782
7783
  // src/server/index.ts
7783
- var VERSION = "0.13.0" ;
7784
+ var VERSION = "0.14.0" ;
7784
7785
 
7785
7786
  exports.DEDUPE_POLICIES = DEDUPE_POLICIES;
7786
7787
  exports.FLOW_STEP_KINDS = FLOW_STEP_KINDS;