aboutsummaryrefslogtreecommitdiffstats
path: root/tests/link_reference.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-05 14:52:49 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-05 14:52:49 +0200
commitfec46e918e5bdf4a9137041298ab1475d2f43202 (patch)
treefb733a356b234bfeaf18fee911c6af72cfebe615 /tests/link_reference.rs
parent195e25958cfaa42d91b36f3fc51e8315586c6378 (diff)
downloadmarkdown-rs-fec46e918e5bdf4a9137041298ab1475d2f43202.tar.gz
markdown-rs-fec46e918e5bdf4a9137041298ab1475d2f43202.tar.bz2
markdown-rs-fec46e918e5bdf4a9137041298ab1475d2f43202.zip
Fix interleaving of attention/label
Diffstat (limited to 'tests/link_reference.rs')
-rw-r--r--tests/link_reference.rs22
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/link_reference.rs b/tests/link_reference.rs
index b53b99b..30fb2b5 100644
--- a/tests/link_reference.rs
+++ b/tests/link_reference.rs
@@ -51,12 +51,11 @@ fn link_reference() {
"should not support deep links in link references"
);
- // To do: link/attention interplay.
- // assert_eq!(
- // micromark("[ref]: /uri\n\n*[foo*][ref]"),
- // "<p>*<a href=\"/uri\">foo*</a></p>",
- // "should prefer link references over emphasis (1)"
- // );
+ assert_eq!(
+ micromark("[ref]: /uri\n\n*[foo*][ref]"),
+ "<p>*<a href=\"/uri\">foo*</a></p>",
+ "should prefer link references over emphasis (1)"
+ );
assert_eq!(
micromark("[ref]: /uri\n\n[foo *bar][ref]"),
@@ -232,12 +231,11 @@ fn link_reference() {
"should “support” an escaped shortcut reference"
);
- // To do: link/attention interplay.
- // assert_eq!(
- // micromark("[foo*]: /url\n\n*[foo*]"),
- // "<p>*<a href=\"/url\">foo*</a></p>",
- // "should prefer shortcut references over emphasis"
- // );
+ assert_eq!(
+ micromark("[foo*]: /url\n\n*[foo*]"),
+ "<p>*<a href=\"/url\">foo*</a></p>",
+ "should prefer shortcut references over emphasis"
+ );
assert_eq!(
micromark("[foo]: /url1\n[bar]: /url2\n\n[foo][bar]"),