diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-22 17:32:40 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-22 17:32:40 +0200 |
commit | 49b6a4e72516e8b2a8768e761a60a4f461802d69 (patch) | |
tree | 1baeb4eba94d9d49ccfd8bd15d0fb3fefd45a993 /tests/list.rs | |
parent | 8774b207b7251730eaa7fbfe4f144122a472dda0 (diff) | |
download | markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.tar.gz markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.tar.bz2 markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.zip |
Fix lazy paragraph after definition
Diffstat (limited to '')
-rw-r--r-- | tests/list.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/list.rs b/tests/list.rs index fc416cc..bbba7cd 100644 --- a/tests/list.rs +++ b/tests/list.rs @@ -262,6 +262,18 @@ fn list() { ); assert_eq!( + micromark("- [\na"), + "<ul>\n<li>[\na</li>\n</ul>", + "should support lazy, definition-like lines" + ); + + assert_eq!( + micromark("- [a]: b\nc"), + "<ul>\n<li>c</li>\n</ul>", + "should support a definition, followed by a lazy paragraph" + ); + + assert_eq!( micromark("- foo\n - bar\n - baz\n - boo"), "<ul>\n<li>foo\n<ul>\n<li>bar\n<ul>\n<li>baz\n<ul>\n<li>boo</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>", "should support sublists w/ enough spaces (1)" |