tiddlywiki
Version:
a non-linear personal web notebook
16 lines (12 loc) • 429 B
JavaScript
/*\
title: $:/plugins/tiddlywiki/wikitext-serialize/rules/import.js
type: application/javascript
module-type: wikiruleserializer
\*/
;
exports.name = "import";
exports.serialize = function(tree,serialize) {
var filter = tree.attributes.filter.value;
// Sibling below the pragma become children, so we append the serialized children to the end..
return "\\import " + filter + "\n" + serialize(tree.children);
};