aboutsummaryrefslogtreecommitdiffstats
path: root/tests/link_resource.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-30 12:49:55 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-30 12:49:55 +0200
commitbf9460fddeec7366df117ddae13b7d31d3354313 (patch)
treeaa29606a51cf464590cca88b35ee83041bb6a2f6 /tests/link_resource.rs
parentb0bc9ea9b5f5bf8a5c2f33b1102abf4f649e60c7 (diff)
downloadmarkdown-rs-bf9460fddeec7366df117ddae13b7d31d3354313.tar.gz
markdown-rs-bf9460fddeec7366df117ddae13b7d31d3354313.tar.bz2
markdown-rs-bf9460fddeec7366df117ddae13b7d31d3354313.zip
Add support for stripping tags in image `alt`
Diffstat (limited to 'tests/link_resource.rs')
-rw-r--r--tests/link_resource.rs11
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)"),