git.iko.soy/typeable/remark-validate-links
on main help sign in
Update for changes in `remark@4.0.0`
commit3910d2f51192f2fd7bf2aecbbbbca1d46b5d11df authorTitus Wormer <tituswormer@gmail.com> dateSun 14 Feb 2016, 13:13 (11 years ago) parentec06782
2 files changed+9−9
index.js+3−3 package.json+6−6
index.js+3−3
@@ -139,7 +139,7 @@ function gatherReferences(file, project) {
139139 *
140140 * @example
141141 * link({
142− * href: 'foo/bar/baz.md#foo',
142+ * url: 'foo/bar/baz.md#foo',
143143 * children: [
144144 * {
145145 * type: 'text',
@@ -151,7 +151,7 @@ function gatherReferences(file, project) {
151151 * @param {Node} node - Link or link-reference node.
152152 */
153153 function onlink(node) {
154− var link = node.href;
154+ var link = node.url;
155155 var definition;
156156 var index;
157157 var uri;
@@ -164,7 +164,7 @@ function gatherReferences(file, project) {
164164
165165 if (node.identifier) {
166166 definition = getDefinition(node.identifier);
167− link = definition && definition.link;
167+ link = definition && definition.url;
168168 }
169169
170170 /*
package.json+6−6
@@ -13,7 +13,7 @@
1313 ],
1414 "dependencies": {
1515 "github-url-to-object": "^2.1.0",
16− "remark-slug": "^4.0.0",
16+ "remark-slug": "^4.1.0",
1717 "mdast-util-definitions": "^1.0.0",
1818 "unist-util-visit": "^1.0.0",
1919 "propose": "0.0.5",
@@ -34,11 +34,11 @@
3434 "istanbul": "^0.4.0",
3535 "jscs": "^2.0.0",
3636 "jscs-jsdoc": "^1.0.0",
37− "remark": "^3.0.0",
38− "remark-comment-config": "^2.0.0",
39− "remark-github": "^4.0.0",
40− "remark-lint": "^2.0.0",
41− "remark-toc": "^2.0.0",
37+ "remark": "^4.0.0-alpha.1",
38+ "remark-comment-config": "^3.0.0",
39+ "remark-github": "^4.0.1",
40+ "remark-lint": "^3.0.0",
41+ "remark-toc": "^3.0.0",
4242 "tape": "^4.0.0"
4343 },
4444 "scripts": {