diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-12 17:47:08 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-12 17:47:08 +0200 |
commit | 2e3b7abaa9877b658fa4f8f2612acc617dff60bb (patch) | |
tree | e823d041521a4af33a7e552ba58f1d4b63335be3 /tests/heading_setext.rs | |
parent | 75522b867b15b9a400275cfec9a2ead4ff535473 (diff) | |
download | markdown-rs-2e3b7abaa9877b658fa4f8f2612acc617dff60bb.tar.gz markdown-rs-2e3b7abaa9877b658fa4f8f2612acc617dff60bb.tar.bz2 markdown-rs-2e3b7abaa9877b658fa4f8f2612acc617dff60bb.zip |
Fix a lot of list things
* Add `ListItem`, `ListOrdered`, and `ListUnordered` tokens
* Add support for multiline list items
* Add support for tight lists
* Fix bug where 10 digit long list item values worked
* Fix skip bug when skipping over nested events
Diffstat (limited to '')
-rw-r--r-- | tests/heading_setext.rs | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/heading_setext.rs b/tests/heading_setext.rs index 3635210..4e2a046 100644 --- a/tests/heading_setext.rs +++ b/tests/heading_setext.rs @@ -141,12 +141,11 @@ fn heading_setext() { "should not allow underline to be lazy (2)" ); - // To do: list. - // assert_eq!( - // micromark("- Foo\n---"), - // "<ul>\n<li>Foo</li>\n</ul>\n<hr />", - // "should not allow underline to be lazy (3)" - // ); + assert_eq!( + micromark("- Foo\n---"), + "<ul>\n<li>Foo</li>\n</ul>\n<hr />", + "should not allow underline to be lazy (3)" + ); assert_eq!( micromark("Foo\nBar\n---"), @@ -172,12 +171,11 @@ fn heading_setext() { "should prefer other constructs over setext headings (1)" ); - // To do: list. - // assert_eq!( - // micromark("- foo\n-----"), - // "<ul>\n<li>foo</li>\n</ul>\n<hr />", - // "should prefer other constructs over setext headings (2)" - // ); + assert_eq!( + micromark("- foo\n-----"), + "<ul>\n<li>foo</li>\n</ul>\n<hr />", + "should prefer other constructs over setext headings (2)" + ); assert_eq!( micromark(" foo\n---"), |