From f3371fc97016a6012433319c46f3945fbfaeb9fc Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 14 Jul 2022 17:46:51 +0200 Subject: Fix html (flow) whitespace again --- tests/html_flow.rs | 84 ++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 44 deletions(-) (limited to 'tests') diff --git a/tests/html_flow.rs b/tests/html_flow.rs index 6f32133..d35a570 100644 --- a/tests/html_flow.rs +++ b/tests/html_flow.rs @@ -244,12 +244,11 @@ fn html_flow_2_comment() { "should end a comment at four dashes (`---->`)" ); - // To do: html (flow) whitespace. - // assert_eq!( - // micromark_with_options(" ", DANGER), - // " ", - // "should support comments w/ indent" - // ); + assert_eq!( + micromark_with_options(" ", DANGER), + " ", + "should support comments w/ indent" + ); assert_eq!( micromark_with_options(" ", DANGER), @@ -481,12 +480,11 @@ okay.", "should support html of type 6 (1)" ); - // To do: html (flow) whitespace. - // assert_eq!( - // micromark_with_options("
\n *hello*\n ", DANGER), - // "
\n *hello*\n ", - // "should support html of type 6 (2)" - // ); + assert_eq!( + micromark_with_options("
\n *hello*\n ", DANGER), + " \n*foo*", DANGER), @@ -566,12 +564,11 @@ okay.", "should support basic tags w/o ending in containers (2)" ); - // To do: html (flow) whitespace. - // assert_eq!( - // micromark_with_options("
", DANGER), - // "
", - // "should support basic tags w/ indent" - // ); + assert_eq!( + micromark_with_options("
", DANGER), + "
", + "should support basic tags w/ indent" + ); assert_eq!( micromark_with_options("
", DANGER), @@ -612,32 +609,31 @@ okay.", "should support blank lines between adjacent html" ); - // To do: html (flow) whitespace. - // assert_eq!( - // micromark_with_options( - // " - - // - - // - - // - - //
- // Hi - //
", - // DANGER - // ), - // " - // - //
<td>
-    //   Hi
-    // </td>
-    // 
- // - //
", - // "should not support indented, blank-line delimited, adjacent html" - // ); + assert_eq!( + micromark_with_options( + " + + + + + + + +
+ Hi +
", + DANGER + ), + " + +
<td>
+  Hi
+</td>
+
+ +
", + "should not support indented, blank-line delimited, adjacent html" + ); assert_eq!( micromark_with_options("", DANGER), -- cgit