From 2e3b7abaa9877b658fa4f8f2612acc617dff60bb Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 12 Jul 2022 17:47:08 +0200 Subject: 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 --- tests/thematic_break.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'tests/thematic_break.rs') 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"), - // "\n
\n", - // "should support thematic breaks mixed w/ lists (1)" - // ); + assert_eq!( + micromark("- foo\n***\n- bar"), + "\n
\n", + "should support thematic breaks mixed w/ lists (1)" + ); - // To do: lists. + // To do: list (prefer thematic break). // assert_eq!( // micromark("* Foo\n* * *\n* Bar"), // "\n
\n", @@ -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- * * *"), // "", -- cgit