Many of my MJML files start with a HTML comment. But, as of extension version 2.0.0 having this comment before the opening tag is breaking the MJML Preview function. (Nothing appears in the preview pane.) As soon as I delete the comment from before the opening tag, the preview appears in the preview pane.
Code sample
Here is a code sample that will prevent the preview from displaying anything in 2.0.0:
<!-- Template information here -->
<mjml>
<mj-body>
<mj-section>
<mj-column>
<mj-image width="100px" src="https://mjml.io/assets/img/logo-small.png"></mj-image>
<mj-divider border-color="#F45E43"></mj-divider>
<mj-text font-size="20px" color="#F45E43" font-family="helvetica">Hello World</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
Specifications
- VS Code version: 1.95.1
- MJML extension version: 2.0.0
- Operating system and version: Windows 11 Business