diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-11-25 11:46:02 +0100 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-11-25 11:46:02 +0100 |
commit | eea185ea8509d37a1f87babab75b1f94350db802 (patch) | |
tree | f8a120ff2ddabbcb13fab0a04df7d3181fc1f3fd /tests | |
parent | 4f776347163a514abadc7ded95e66a459be03bc9 (diff) | |
download | markdown-rs-eea185ea8509d37a1f87babab75b1f94350db802.tar.gz markdown-rs-eea185ea8509d37a1f87babab75b1f94350db802.tar.bz2 markdown-rs-eea185ea8509d37a1f87babab75b1f94350db802.zip |
Fix double setext heading underlines
Related-to: GH-22.
Diffstat (limited to '')
-rw-r--r-- | tests/heading_setext.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -250,6 +250,12 @@ fn heading_setext() -> Result<(), String> { ); assert_eq!( + to_html("[a]: b\n=\n="), + "<h1>=</h1>", + "should support a two setext heading underlines after a definition, as a setext heading" + ); + + assert_eq!( to_html("> ===\na"), "<blockquote>\n<p>===\na</p>\n</blockquote>", "should not support lazyness (1)" |