diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-30 12:49:55 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-30 12:49:55 +0200 |
commit | bf9460fddeec7366df117ddae13b7d31d3354313 (patch) | |
tree | aa29606a51cf464590cca88b35ee83041bb6a2f6 /tests/link_resource.rs | |
parent | b0bc9ea9b5f5bf8a5c2f33b1102abf4f649e60c7 (diff) | |
download | markdown-rs-bf9460fddeec7366df117ddae13b7d31d3354313.tar.gz markdown-rs-bf9460fddeec7366df117ddae13b7d31d3354313.tar.bz2 markdown-rs-bf9460fddeec7366df117ddae13b7d31d3354313.zip |
Add support for stripping tags in image `alt`
Diffstat (limited to '')
-rw-r--r-- | tests/link_resource.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/link_resource.rs b/tests/link_resource.rs index 992c7d2..d75736e 100644 --- a/tests/link_resource.rs +++ b/tests/link_resource.rs @@ -257,12 +257,11 @@ fn link_resource() { // "should not support links in links (2)" // ); - // To do: tags in images. - // assert_eq!( - // micromark("![[[foo](uri1)](uri2)](uri3)"), - // "<p><img src=\"uri3\" alt=\"[foo](uri2)\" /></p>", - // "should not support links in links (3)" - // ); + assert_eq!( + micromark("![[[foo](uri1)](uri2)](uri3)"), + "<p><img src=\"uri3\" alt=\"[foo](uri2)\" /></p>", + "should not support links in links (3)" + ); assert_eq!( micromark("*[foo*](/uri)"), |