diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-09 10:55:31 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-09 10:55:31 +0200 |
commit | fafcfd55e5f7ea8b87cab4bbf979730d81749402 (patch) | |
tree | d7fca5a1a98527776f426fee0e69f3bbad2025e2 /tests/block_quote.rs | |
parent | 17d83d974eeb4f1f7516cc9d1c72d76870a0e6d0 (diff) | |
download | markdown-rs-fafcfd55e5f7ea8b87cab4bbf979730d81749402.tar.gz markdown-rs-fafcfd55e5f7ea8b87cab4bbf979730d81749402.tar.bz2 markdown-rs-fafcfd55e5f7ea8b87cab4bbf979730d81749402.zip |
Add more tests for definitions and block quotes
Diffstat (limited to 'tests/block_quote.rs')
-rw-r--r-- | tests/block_quote.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/block_quote.rs b/tests/block_quote.rs index 70a6aeb..2f69bf5 100644 --- a/tests/block_quote.rs +++ b/tests/block_quote.rs @@ -124,6 +124,18 @@ fn block_quote() { ); assert_eq!( + micromark("[a]\n\n> [a]: b"), + "<p><a href=\"b\">a</a></p>\n<blockquote>\n</blockquote>", + "should support a definition in a block quote (1)" + ); + + assert_eq!( + micromark("> [a]: b\n\n[a]"), + "<blockquote>\n</blockquote>\n<p><a href=\"b\">a</a></p>", + "should support a definition in a block quote (2)" + ); + + assert_eq!( micromark("a\n> b"), "<p>a</p>\n<blockquote>\n<p>b</p>\n</blockquote>", "should support interrupting paragraphs w/ block quotes" |