git.iko.soy/typeable/remark-validate-links
on main help sign in
Fix fab6a89
commitd33c271fe0c7ae6b4bd532de9756da31a02956dd authorTitus Wormer <tituswormer@gmail.com> dateFri 18 Sep 2015, 16:40 (11 years ago) parentfab6a89
1 file changed+2−1
index.js+2−1
index.js+2−1
@@ -351,7 +351,8 @@ function gatherExposedFactory() {
351351 * (optional).
352352 */
353353function validate(exposed, file, project) {
354− var ast = file.namespace('mdast').ast;
354+ var space = file.namespace('mdast');
355+ var ast = space.tree || space.ast;
355356 var references = ast ? gatherReferences(file, project) : {};
356357 var filePath = file.filePath();
357358 var reference;