aboutsummaryrefslogtreecommitdiffstats
path: root/tests/definition.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-09 10:55:31 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-09 10:55:31 +0200
commitfafcfd55e5f7ea8b87cab4bbf979730d81749402 (patch)
treed7fca5a1a98527776f426fee0e69f3bbad2025e2 /tests/definition.rs
parent17d83d974eeb4f1f7516cc9d1c72d76870a0e6d0 (diff)
downloadmarkdown-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/definition.rs')
-rw-r--r--tests/definition.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/definition.rs b/tests/definition.rs
index 27c1fed..5fee153 100644
--- a/tests/definition.rs
+++ b/tests/definition.rs
@@ -228,6 +228,12 @@ fn definition() {
"should support definitions in block quotes (2)"
);
+ assert_eq!(
+ micromark("> [a]\n\n[a]: b (c\n)"),
+ "<blockquote>\n<p><a href=\"b\" title=\"c\n\">a</a></p>\n</blockquote>\n",
+ "should support definitions in block quotes (3)"
+ );
+
// Extra
assert_eq!(
micromark("[\\[\\+\\]]: example.com\n\nLink: [\\[\\+\\]]."),