git.iko.soy/typeable/remark-validate-links
on main help sign in
Add support for changes in mdast-slug

...but the old one is still supported.

commit87498767642e0ad094788d926bb8573feb2fc38b authorTitus Wormer <tituswormer@gmail.com> dateMon 7 Sep 2015, 16:43 (11 years ago) parente9b32d4
2 files changed+7−2
index.js+6−1 package.json+1−1
index.js+6−1
@@ -310,7 +310,12 @@ function gatherExposedFactory() {
310310 cache[filePath] = true;
311311
312312 visit(ast, 'heading', function (node) {
313− var id = node.attributes && node.attributes.id;
313+ var data = node.data || {};
314+ var attributes = data.htmlAttributes || {};
315+ var id = attributes.id || data.id;
316+
317+ /* istanbul ignore next */
318+ id = id || (node.attributes && node.attributes.id);
314319
315320 hasHeadings = true;
316321
package.json+1−1
@@ -13,7 +13,7 @@
1313 ],
1414 "dependencies": {
1515 "github-url-to-object": "^1.5.2",
16− "mdast-slug": "^1.0.0",
16+ "mdast-slug": "^2.0.0",
1717 "mdast-util-definitions": "^1.0.0",
1818 "unist-util-visit": "^1.0.0",
1919 "propose": "0.0.5",