aboutsummaryrefslogtreecommitdiffstats
path: root/tests/list.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-22 17:32:40 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-22 17:32:40 +0200
commit49b6a4e72516e8b2a8768e761a60a4f461802d69 (patch)
tree1baeb4eba94d9d49ccfd8bd15d0fb3fefd45a993 /tests/list.rs
parent8774b207b7251730eaa7fbfe4f144122a472dda0 (diff)
downloadmarkdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.tar.gz
markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.tar.bz2
markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.zip
Fix lazy paragraph after definition
Diffstat (limited to 'tests/list.rs')
-rw-r--r--tests/list.rs12
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)"