From 879fbf500d0aef45cf5811569a53510013440bcd Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 12 Jul 2022 17:53:05 +0200 Subject: Fix to prefer thematic breaks over lists --- tests/heading_setext.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tests/heading_setext.rs') 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"), - // "

Foo\nbar

\n
\n

baz

", - // "paragraph and heading interplay (4)" - // ); + assert_eq!( + micromark("Foo\nbar\n* * *\nbaz"), + "

Foo\nbar

\n
\n

baz

", + "paragraph and heading interplay (4)" + ); assert_eq!( micromark("Foo\nbar\n\\---\nbaz"), -- cgit