diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-14 17:46:51 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-14 17:46:51 +0200 |
commit | f3371fc97016a6012433319c46f3945fbfaeb9fc (patch) | |
tree | a46ea7dd24bf8f7f607b90eb49f130aec03e7d8f /tests | |
parent | 8183323c432fc1359c634feb68bc372e13f0bd03 (diff) | |
download | markdown-rs-f3371fc97016a6012433319c46f3945fbfaeb9fc.tar.gz markdown-rs-f3371fc97016a6012433319c46f3945fbfaeb9fc.tar.bz2 markdown-rs-f3371fc97016a6012433319c46f3945fbfaeb9fc.zip |
Fix html (flow) whitespace again
Diffstat (limited to 'tests')
-rw-r--r-- | tests/html_flow.rs | 84 |
1 files changed, 40 insertions, 44 deletions
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(" <!-- foo -->", DANGER), - // " <!-- foo -->", - // "should support comments w/ indent" - // ); + assert_eq!( + micromark_with_options(" <!-- foo -->", DANGER), + " <!-- foo -->", + "should support comments w/ indent" + ); assert_eq!( micromark_with_options(" <!-- foo -->", DANGER), @@ -481,12 +480,11 @@ okay.", "should support html of type 6 (1)" ); - // To do: html (flow) whitespace. - // assert_eq!( - // micromark_with_options(" <div>\n *hello*\n <foo><a>", DANGER), - // " <div>\n *hello*\n <foo><a>", - // "should support html of type 6 (2)" - // ); + assert_eq!( + micromark_with_options(" <div>\n *hello*\n <foo><a>", DANGER), + " <div>\n *hello*\n <foo><a>", + "should support html of type 6 (2)" + ); assert_eq!( micromark_with_options("</div>\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(" <div>", DANGER), - // " <div>", - // "should support basic tags w/ indent" - // ); + assert_eq!( + micromark_with_options(" <div>", DANGER), + " <div>", + "should support basic tags w/ indent" + ); assert_eq!( micromark_with_options(" <div>", DANGER), @@ -612,32 +609,31 @@ okay.", "should support blank lines between adjacent html" ); - // To do: html (flow) whitespace. - // assert_eq!( - // micromark_with_options( - // "<table> - - // <tr> - - // <td> - // Hi - // </td> - - // </tr> - - // </table>", - // DANGER - // ), - // "<table> - // <tr> - // <pre><code><td> - // Hi - // </td> - // </code></pre> - // </tr> - // </table>", - // "should not support indented, blank-line delimited, adjacent html" - // ); + assert_eq!( + micromark_with_options( + "<table> + + <tr> + + <td> + Hi + </td> + + </tr> + +</table>", + DANGER + ), + "<table> + <tr> +<pre><code><td> + Hi +</td> +</code></pre> + </tr> +</table>", + "should not support indented, blank-line delimited, adjacent html" + ); assert_eq!( micromark_with_options("</1>", DANGER), |