diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-14 20:00:00 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-14 20:02:53 +0200 |
commit | 8f9c7c6cf112e44f64b3dfbcd012e6550d8883e5 (patch) | |
tree | 59abddd3f455e845f3484ff2b5f6525e9ad91480 /tests | |
parent | 5a98a4626d4e87c4681f7f2434bbc56c90bad322 (diff) | |
download | markdown-rs-8f9c7c6cf112e44f64b3dfbcd012e6550d8883e5.tar.gz markdown-rs-8f9c7c6cf112e44f64b3dfbcd012e6550d8883e5.tar.bz2 markdown-rs-8f9c7c6cf112e44f64b3dfbcd012e6550d8883e5.zip |
Fix two more list bugs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/block_quote.rs | 11 | ||||
-rw-r--r-- | tests/list.rs | 21 |
2 files changed, 15 insertions, 17 deletions
diff --git a/tests/block_quote.rs b/tests/block_quote.rs index c60085d..06bd49a 100644 --- a/tests/block_quote.rs +++ b/tests/block_quote.rs @@ -51,12 +51,11 @@ fn block_quote() { "should not support lazy setext headings underlines in block quotes" ); - // To do: list (something with interrupting? 🤷♂️). - // assert_eq!( - // micromark("> - a\n> - b"), - // "<blockquote>\n<ul>\n<li>a</li>\n<li>b</li>\n</ul>\n</blockquote>", - // "should support lists in block quotes" - // ); + assert_eq!( + micromark("> - a\n> - b"), + "<blockquote>\n<ul>\n<li>a</li>\n<li>b</li>\n</ul>\n</blockquote>", + "should support lists in block quotes" + ); assert_eq!( micromark("> - a\n- b"), diff --git a/tests/list.rs b/tests/list.rs index e773a84..2819bdb 100644 --- a/tests/list.rs +++ b/tests/list.rs @@ -429,19 +429,18 @@ fn list() { "should support tight lists w/ a blank line in a sublist" ); - // To do: list (loose/tight bug). - // assert_eq!( - // micromark("* a\n > b\n >\n* c"), - // "<ul>\n<li>a\n<blockquote>\n<p>b</p>\n</blockquote>\n</li>\n<li>c</li>\n</ul>", - // "should support tight lists w/ a blank line in a block quote" - // ); + assert_eq!( + micromark("* a\n > b\n >\n* c"), + "<ul>\n<li>a\n<blockquote>\n<p>b</p>\n</blockquote>\n</li>\n<li>c</li>\n</ul>", + "should support tight lists w/ a blank line in a block quote" + ); // To do: list (some crash). - // assert_eq!( - // micromark("- a\n > b\n ```\n c\n ```\n- d"), - // "<ul>\n<li>a\n<blockquote>\n<p>b</p>\n</blockquote>\n<pre><code>c\n</code></pre>\n</li>\n<li>d</li>\n</ul>", - // "should support tight lists w/ flow w/o blank line" - // ); + assert_eq!( + micromark("- a\n > b\n ```\n c\n ```\n- d"), + "<ul>\n<li>a\n<blockquote>\n<p>b</p>\n</blockquote>\n<pre><code>c\n</code></pre>\n</li>\n<li>d</li>\n</ul>", + "should support tight lists w/ flow w/o blank line" + ); assert_eq!( micromark("- a"), |