mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-01 22:12:46 +00:00
26 lines
470 B
JavaScript
26 lines
470 B
JavaScript
/*\
|
|
title: $:/core/modules/filters/format/titlelist.js
|
|
type: application/javascript
|
|
module-type: formatfilteroperator
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
/*
|
|
Export our filter function
|
|
*/
|
|
exports.titlelist = function(source,operand,options) {
|
|
var results = [];
|
|
source(function(tiddler,title) {
|
|
if(title && title.length) {
|
|
results.push($tw.utils.stringifyList([title]));
|
|
}
|
|
});
|
|
return results;
|
|
};
|
|
|
|
})();
|