From eea185ea8509d37a1f87babab75b1f94350db802 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 25 Nov 2022 11:46:02 +0100 Subject: Fix double setext heading underlines Related-to: GH-22. --- tests/heading_setext.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/heading_setext.rs b/tests/heading_setext.rs index 29e8dd2..3bc1eef 100644 --- a/tests/heading_setext.rs +++ b/tests/heading_setext.rs @@ -249,6 +249,12 @@ fn heading_setext() -> Result<(), String> { "should prefer a setext heading over an interrupting list" ); + assert_eq!( + to_html("[a]: b\n=\n="), + "

=

", + "should support a two setext heading underlines after a definition, as a setext heading" + ); + assert_eq!( to_html("> ===\na"), "
\n

===\na

\n
", -- cgit