diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-05 14:52:49 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-05 14:52:49 +0200 |
commit | fec46e918e5bdf4a9137041298ab1475d2f43202 (patch) | |
tree | fb733a356b234bfeaf18fee911c6af72cfebe615 /tests/attention.rs | |
parent | 195e25958cfaa42d91b36f3fc51e8315586c6378 (diff) | |
download | markdown-rs-fec46e918e5bdf4a9137041298ab1475d2f43202.tar.gz markdown-rs-fec46e918e5bdf4a9137041298ab1475d2f43202.tar.bz2 markdown-rs-fec46e918e5bdf4a9137041298ab1475d2f43202.zip |
Fix interleaving of attention/label
Diffstat (limited to 'tests/attention.rs')
-rw-r--r-- | tests/attention.rs | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/attention.rs b/tests/attention.rs index 6ab173b..789d860 100644 --- a/tests/attention.rs +++ b/tests/attention.rs @@ -753,19 +753,17 @@ fn attention() { ); // Rule 17. - // To do: attention/link interplay. - // assert_eq!( - // micromark("*[bar*](/url)"), - // "<p>*<a href=\"/url\">bar*</a></p>", - // "should not mismatch inside links (1)" - // ); + assert_eq!( + micromark("*[bar*](/url)"), + "<p>*<a href=\"/url\">bar*</a></p>", + "should not mismatch inside links (1)" + ); - // To do: attention/link interplay. - // assert_eq!( - // micromark("_[bar_](/url)"), - // "<p>_<a href=\"/url\">bar_</a></p>", - // "should not mismatch inside links (1)" - // ); + assert_eq!( + micromark("_[bar_](/url)"), + "<p>_<a href=\"/url\">bar_</a></p>", + "should not mismatch inside links (1)" + ); assert_eq!( micromark_with_options("*<img src=\"foo\" title=\"*\"/>", DANGER), |