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/thematic_break.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/thematic_break.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/thematic_break.rs b/tests/thematic_break.rs index 5bcc75d..02be90f 100644 --- a/tests/thematic_break.rs +++ b/tests/thematic_break.rs @@ -126,14 +126,13 @@ fn thematic_break() { "should not support thematic breaks w/ mixed markers" ); - // To do: lists. - // assert_eq!( - // micromark("- foo\n***\n- bar"), - // "<ul>\n<li>foo</li>\n</ul>\n<hr />\n<ul>\n<li>bar</li>\n</ul>", - // "should support thematic breaks mixed w/ lists (1)" - // ); + assert_eq!( + micromark("- foo\n***\n- bar"), + "<ul>\n<li>foo</li>\n</ul>\n<hr />\n<ul>\n<li>bar</li>\n</ul>", + "should support thematic breaks mixed w/ lists (1)" + ); - // To do: lists. + // To do: list (prefer thematic break). // assert_eq!( // micromark("* Foo\n* * *\n* Bar"), // "<ul>\n<li>Foo</li>\n</ul>\n<hr />\n<ul>\n<li>Bar</li>\n</ul>", @@ -152,7 +151,7 @@ fn thematic_break() { "should not support thematic breaks w/ dashes interrupting paragraphs (setext heading)" ); - // To do: lists. + // To do: list (prefer thematic break). // assert_eq!( // micromark("- Foo\n- * * *"), // "<ul>\n<li>Foo</li>\n<li>\n<hr />\n</li>\n</ul>", |