diff --git a/core/modules/wiki-extract.js b/core/modules/wiki-extract.js index 9f4aad588..6b77ae7b9 100644 --- a/core/modules/wiki-extract.js +++ b/core/modules/wiki-extract.js @@ -12,6 +12,66 @@ AST information extractor for indexers. /*global $tw: false */ "use strict"; +/* +Return an array of tiddler titles that are directly linked within the given parse tree + */ +exports.extractLinks = function(parseTreeRoot) { + // Count up the links + var links = [], + checkParseTree = function(parseTree) { + for(var t=0; t