Skip to content

Tag before <mjml> only outputs that tag instead of returning an error #36

@epelc

Description

@epelc

We use go's text/template and html/template packages to build out an mjml message before rendering the mjml.

However in this case(common) or other misusage if you have something like <mj-text> before <mjml> then the library just outputs the content before the <mjml> block instead of returning an error.

It'd be helpful if an error was returned if the first element encountered is not <mjml>

Example: https://go.dev/play/p/XjZNct1osO4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions