diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-12 17:53:05 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-12 17:53:05 +0200 |
commit | 879fbf500d0aef45cf5811569a53510013440bcd (patch) | |
tree | 0e8c0183fa8b6b0060bef780eabc773ab30ee870 /tests/heading_setext.rs | |
parent | 2e3b7abaa9877b658fa4f8f2612acc617dff60bb (diff) | |
download | markdown-rs-879fbf500d0aef45cf5811569a53510013440bcd.tar.gz markdown-rs-879fbf500d0aef45cf5811569a53510013440bcd.tar.bz2 markdown-rs-879fbf500d0aef45cf5811569a53510013440bcd.zip |
Fix to prefer thematic breaks over lists
Diffstat (limited to 'tests/heading_setext.rs')
-rw-r--r-- | tests/heading_setext.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/heading_setext.rs b/tests/heading_setext.rs index 4e2a046..8d4a5b7 100644 --- a/tests/heading_setext.rs +++ b/tests/heading_setext.rs @@ -213,12 +213,11 @@ fn heading_setext() { "paragraph and heading interplay (3)" ); - // To do: list (prefer thematic break). - // assert_eq!( - // micromark("Foo\nbar\n* * *\nbaz"), - // "<p>Foo\nbar</p>\n<hr />\n<p>baz</p>", - // "paragraph and heading interplay (4)" - // ); + assert_eq!( + micromark("Foo\nbar\n* * *\nbaz"), + "<p>Foo\nbar</p>\n<hr />\n<p>baz</p>", + "paragraph and heading interplay (4)" + ); assert_eq!( micromark("Foo\nbar\n\\---\nbaz"), |