From 13cf914b5162fb12c842e983538b42d4b60cdcb8 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 1 Aug 2022 13:06:18 +0200 Subject: Fix bug on empty heading (atx) --- tests/heading_atx.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/heading_atx.rs b/tests/heading_atx.rs index 22c9f82..f785ca6 100644 --- a/tests/heading_atx.rs +++ b/tests/heading_atx.rs @@ -179,7 +179,13 @@ fn heading_atx() { assert_eq!( micromark("## \n#\n### ###"), "

\n

\n

", - "should support empty atx headings" + "should support empty atx headings (1)" + ); + + assert_eq!( + micromark("#\na\n# b"), + "

\n

a

\n

b

", + "should support empty atx headings (2)" ); assert_eq!( -- cgit