File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
- import { mjml2html } from 'mjml' ;
1
+ import mjml2html from 'mjml' ;
2
2
3
3
export default ( template ) => {
4
4
try {
5
5
const output = mjml2html ( template ) ;
6
6
return output . html ;
7
7
} catch ( e ) {
8
+ console . error ( e ) ;
8
9
// fall through to null
9
10
}
10
11
Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ export default ({
21
21
</mj-raw>
22
22
</mj-head>
23
23
<mj-body>
24
- <mj-container>
25
24
<mj-section>
26
25
<mj-column>
27
- <mj-image width="192 " src="${ domain } /images/p5js-square-logo.png" alt="p5.js" />
26
+ <mj-image width="192px " src="${ domain } /images/p5js-square-logo.png" alt="p5.js" />
28
27
<mj-divider border-color="#ed225d"></mj-divider>
29
28
</mj-column>
30
29
</mj-section>
@@ -71,7 +70,6 @@ export default ({
71
70
</mj-text>
72
71
</mj-column>
73
72
</mj-section>
74
- </mj-container>
75
73
</mj-body>
76
74
</mjml>
77
75
` ;
Original file line number Diff line number Diff line change @@ -18,10 +18,9 @@ export default ({
18
18
</mj-raw>
19
19
</mj-head>
20
20
<mj-body>
21
- <mj-container>
22
21
<mj-section>
23
22
<mj-column>
24
- <mj-image width="192 " src="${ domain } /images/p5js-square-logo.png" alt="p5.js" />
23
+ <mj-image width="192px " src="${ domain } /images/p5js-square-logo.png" alt="p5.js" />
25
24
<mj-divider border-color="#ed225d"></mj-divider>
26
25
</mj-column>
27
26
</mj-section>
@@ -59,7 +58,6 @@ export default ({
59
58
</mj-text>
60
59
</mj-column>
61
60
</mj-section>
62
- </mj-container>
63
61
</mj-body>
64
62
</mjml>
65
63
` ;
You can’t perform that action at this time.
0 commit comments