Skip to content

Commit ff87a6f

Browse files
committed
Update deps, add url property for forwards-compatibility
1 parent 1dd9c33 commit ff87a6f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ function t(text) {
1818
function link(text, getHref, description) {
1919
var href = (getHref && getHref(text)) || globalsDocs.getDoc(text);
2020
if (href) {
21-
return u('link', { href: href }, [u('text', description || text)]);
21+
// TODO: this is a temporary fix until we drop remark 3.x support,
22+
// and then we should remove the 'href' property and only
23+
// have the url property of links
24+
return u('link', { href: href, url: href }, [u('text', description || text)]);
2225
}
2326
return u('text', text);
2427
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"author": "Tom MacWright",
1616
"license": "ISC",
1717
"dependencies": {
18-
"doctrine": "^0.7.2",
18+
"doctrine": "^1.2.0",
1919
"globals-docs": "^2.2.0",
2020
"unist-builder": "^1.0.0"
2121
},
2222
"devDependencies": {
23-
"remark": "^3.0.0",
24-
"tap": "^2.3.1"
23+
"remark": "^4.1.2",
24+
"tap": "^5.7.0"
2525
}
2626
}

0 commit comments

Comments
 (0)