diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 12:55:58 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 12:55:58 +0200 |
commit | 2bde864146fdee411b8acef0f088ca9544aec8d0 (patch) | |
tree | eda0d23017f36b58dfa9bfe2922b548e07406778 /tests/definition.rs | |
parent | bdbd90b7c25d62bc7ebc20246e9f8dffea1228b3 (diff) | |
download | markdown-rs-2bde864146fdee411b8acef0f088ca9544aec8d0.tar.gz markdown-rs-2bde864146fdee411b8acef0f088ca9544aec8d0.tar.bz2 markdown-rs-2bde864146fdee411b8acef0f088ca9544aec8d0.zip |
Add another test for setext heading underlines after definitions
Diffstat (limited to 'tests/definition.rs')
-rw-r--r-- | tests/definition.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/definition.rs b/tests/definition.rs index c6923bc..5f9c286 100644 --- a/tests/definition.rs +++ b/tests/definition.rs @@ -212,9 +212,15 @@ fn definition() -> Result<(), String> { ); assert_eq!( + to_html("[a]: b\n="), + "<p>=</p>", + "should not support setext heading underlines after definitions (1)" + ); + + assert_eq!( to_html("[foo]: /url\n===\n[foo]"), "<p>===\n<a href=\"/url\">foo</a></p>", - "should not support setext heading underlines after definitions" + "should not support setext heading underlines after definitions (2)" ); assert_eq!( |