aboutsummaryrefslogtreecommitdiffstats
path: root/tests/link_resource.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/link_resource.rs')
-rw-r--r--tests/link_resource.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/link_resource.rs b/tests/link_resource.rs
index 7761569..bebf6cc 100644
--- a/tests/link_resource.rs
+++ b/tests/link_resource.rs
@@ -231,7 +231,7 @@ fn link_resource() {
"should support characer escapes"
);
- // To do: attention.
+ // To do: link/attention interplay.
// assert_eq!(
// micromark("[link *foo **bar** `#`*](/uri)"),
// "<p><a href=\"/uri\">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>",
@@ -250,12 +250,11 @@ fn link_resource() {
"should not support links in links (1)"
);
- // To do: attention.
- // assert_eq!(
- // micromark("[foo *[bar [baz](/uri)](/uri)*](/uri)"),
- // "<p>[foo <em>[bar <a href=\"/uri\">baz</a>](/uri)</em>](/uri)</p>",
- // "should not support links in links (2)"
- // );
+ assert_eq!(
+ micromark("[foo *[bar [baz](/uri)](/uri)*](/uri)"),
+ "<p>[foo <em>[bar <a href=\"/uri\">baz</a>](/uri)</em>](/uri)</p>",
+ "should not support links in links (2)"
+ );
assert_eq!(
micromark("![[[foo](uri1)](uri2)](uri3)"),
@@ -263,11 +262,12 @@ fn link_resource() {
"should not support links in links (3)"
);
- assert_eq!(
- micromark("*[foo*](/uri)"),
- "<p>*<a href=\"/uri\">foo*</a></p>",
- "should prefer links over emphasis (1)"
- );
+ // To do: link/attention interplay.
+ // assert_eq!(
+ // micromark("*[foo*](/uri)"),
+ // "<p>*<a href=\"/uri\">foo*</a></p>",
+ // "should prefer links over emphasis (1)"
+ // );
assert_eq!(
micromark("[foo *bar](baz*)"),