Skip to content

fix: Raw component within Conditional should not be escaped #322

Description

@shellscape

This snapshot

exports[`snapshot: minimal <Raw> inside <Conditional mso> > renders final HTML via the render pipeline 1`] = `"<!DOCTYPE html PUBLIC \\"-//W3C//DTD XHTML 1.0 Transitional//EN\\" \\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\"><html><body><!--[if mso]><jsx-email-raw>&#x3C;!--<b data-testid=\\"raw\\">hello</b>--><!--[endif]----></body></html>"`;
shows that a <jsx-email-raw> tag and escaped children exist within the render output of a Conditional component. That is not desirable. The desired behavior is that the contents of the Raw component within the Conditional component are rendered normally; unescaped and as if the Raw component was at the root.

Instructions:

  • Analyze the source code and propose a course of action to correct this behavior
  • Do not open a pull request at this time.
  • Remember to build all packages before running tests. e.g. moon jsx-email:build
  • Use moon jsx-email:test to run tests

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions