From 2bde864146fdee411b8acef0f088ca9544aec8d0 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 13 Oct 2022 12:55:58 +0200 Subject: Add another test for setext heading underlines after definitions --- tests/definition.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/definition.rs b/tests/definition.rs index c6923bc..5f9c286 100644 --- a/tests/definition.rs +++ b/tests/definition.rs @@ -211,10 +211,16 @@ fn definition() -> Result<(), String> { "should support setext headings after definitions" ); + assert_eq!( + to_html("[a]: b\n="), + "

=

", + "should not support setext heading underlines after definitions (1)" + ); + assert_eq!( to_html("[foo]: /url\n===\n[foo]"), "

===\nfoo

", - "should not support setext heading underlines after definitions" + "should not support setext heading underlines after definitions (2)" ); assert_eq!( -- cgit