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/heading_setext.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'tests/heading_setext.rs') 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---"), - // "\n
", - // "should not allow underline to be lazy (3)" - // ); + assert_eq!( + micromark("- Foo\n---"), + "\n
", + "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-----"), - // "\n
", - // "should prefer other constructs over setext headings (2)" - // ); + assert_eq!( + micromark("- foo\n-----"), + "\n
", + "should prefer other constructs over setext headings (2)" + ); assert_eq!( micromark(" foo\n---"), -- cgit