diff --git a/index.js b/index.js index 3a7d6ba..f0e22e4 100644 --- a/index.js +++ b/index.js @@ -139,7 +139,7 @@ function gatherReferences(file, project) { * * @example * link({ - * href: 'foo/bar/baz.md#foo', + * url: 'foo/bar/baz.md#foo', * children: [ * { * type: 'text', @@ -151,7 +151,7 @@ function gatherReferences(file, project) { * @param {Node} node - Link or link-reference node. */ function onlink(node) { - var link = node.href; + var link = node.url; var definition; var index; var uri; @@ -164,7 +164,7 @@ function gatherReferences(file, project) { if (node.identifier) { definition = getDefinition(node.identifier); - link = definition && definition.link; + link = definition && definition.url; } /* diff --git a/package.json b/package.json index 06575b9..e42bec4 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ ], "dependencies": { "github-url-to-object": "^2.1.0", - "remark-slug": "^4.0.0", + "remark-slug": "^4.1.0", "mdast-util-definitions": "^1.0.0", "unist-util-visit": "^1.0.0", "propose": "0.0.5", @@ -34,11 +34,11 @@ "istanbul": "^0.4.0", "jscs": "^2.0.0", "jscs-jsdoc": "^1.0.0", - "remark": "^3.0.0", - "remark-comment-config": "^2.0.0", - "remark-github": "^4.0.0", - "remark-lint": "^2.0.0", - "remark-toc": "^2.0.0", + "remark": "^4.0.0-alpha.1", + "remark-comment-config": "^3.0.0", + "remark-github": "^4.0.1", + "remark-lint": "^3.0.0", + "remark-toc": "^3.0.0", "tape": "^4.0.0" }, "scripts": {