test: nested list

This commit is contained in:
PoiScript 2019-04-08 19:35:38 +08:00
parent 5b7ecf16c9
commit c2c554a3d5

View file

@ -32,3 +32,25 @@ _Section 2_
) )
) )
} }
#[test]
fn list() {
parse_assert!(
r#"+ 1
+ 2
- 3
- 4
+ 5"#,
concat!(
"<section><ul>",
"<li><p>1</p></li>",
"<li><p>2</p><ul><li><p>3</p></li><li><p>4</p></li></ul></li>",
"<li><p>5</p></li>",
"</ul></section>"
)
)
}