From 8e033eb0d44cb26e723cbf4c85d1e18be71ed706 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 27 Nov 2016 14:52:04 +0000 Subject: [PATCH] Add new "all[tags]" filter operator --- core/modules/filters/all/tags.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 core/modules/filters/all/tags.js diff --git a/core/modules/filters/all/tags.js b/core/modules/filters/all/tags.js new file mode 100644 index 000000000..2aaa9dec2 --- /dev/null +++ b/core/modules/filters/all/tags.js @@ -0,0 +1,22 @@ +/*\ +title: $:/core/modules/filters/all/tags.js +type: application/javascript +module-type: allfilteroperator + +Filter function for [all[tags]] + +\*/ +(function(){ + +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +/* +Export our filter function +*/ +exports.tags = function(source,prefix,options) { + return Object.keys(options.wiki.getTagMap()); +}; + +})();