From f7d9c84af46044a72154b2be9ff847869c345d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Drouet?= Date: Sat, 19 Oct 2024 18:50:27 +0200 Subject: [PATCH] fix(mj-core): mj-text is an ending tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Drouet --- .../success/mj-divider-in-mj-text.html | 115 ++++++++++++++++++ .../success/mj-divider-in-mj-text.mjml | 11 ++ packages/mrml-core/src/mj_text/mod.rs | 4 +- 3 files changed, 128 insertions(+), 2 deletions(-) create mode 100644 packages/mrml-core/resources/compare/success/mj-divider-in-mj-text.html create mode 100644 packages/mrml-core/resources/compare/success/mj-divider-in-mj-text.mjml diff --git a/packages/mrml-core/resources/compare/success/mj-divider-in-mj-text.html b/packages/mrml-core/resources/compare/success/mj-divider-in-mj-text.html new file mode 100644 index 00000000..e5965df3 --- /dev/null +++ b/packages/mrml-core/resources/compare/success/mj-divider-in-mj-text.html @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ +
+ + + + + + +
+
+
+
+ +
+
+ +
+ + + diff --git a/packages/mrml-core/resources/compare/success/mj-divider-in-mj-text.mjml b/packages/mrml-core/resources/compare/success/mj-divider-in-mj-text.mjml new file mode 100644 index 00000000..94626b6c --- /dev/null +++ b/packages/mrml-core/resources/compare/success/mj-divider-in-mj-text.mjml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/packages/mrml-core/src/mj_text/mod.rs b/packages/mrml-core/src/mj_text/mod.rs index 2687380f..ad768b22 100644 --- a/packages/mrml-core/src/mj_text/mod.rs +++ b/packages/mrml-core/src/mj_text/mod.rs @@ -1,6 +1,6 @@ use std::marker::PhantomData; -use crate::mj_body::MjBodyChild; +use crate::mj_raw::MjRawChild; use crate::prelude::{Component, StaticTag}; #[cfg(feature = "json")] @@ -22,4 +22,4 @@ impl StaticTag for MjTextTag { } } -pub type MjText = Component, crate::prelude::AttributeMap, Vec>; +pub type MjText = Component, crate::prelude::AttributeMap, Vec>;