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/code_indented.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'tests/code_indented.rs') diff --git a/tests/code_indented.rs b/tests/code_indented.rs index 10281a2..6735954 100644 --- a/tests/code_indented.rs +++ b/tests/code_indented.rs @@ -9,19 +9,17 @@ fn code_indented() { "should support indented code" ); - // To do: list. - // assert_eq!( - // micromark(" - foo\n\n bar"), - // "", - // "should prefer list item content over indented code (1)" - // ); + assert_eq!( + micromark(" - foo\n\n bar"), + "", + "should prefer list item content over indented code (1)" + ); - // To do: list. - // assert_eq!( - // micromark("1. foo\n\n - bar"), - // "
    \n
  1. \n

    foo

    \n
      \n
    • bar
    • \n
    \n
  2. \n
", - // "should prefer list item content over indented code (2)" - // ); + assert_eq!( + micromark("1. foo\n\n - bar"), + "
    \n
  1. \n

    foo

    \n
      \n
    • bar
    • \n
    \n
  2. \n
", + "should prefer list item content over indented code (2)" + ); assert_eq!( micromark(" \n *hi*\n\n - one"), -- cgit