diff --git a/core/modules/macros/include.js b/core/modules/macros/include.js index 34dd04ec5..7b36db7bc 100644 --- a/core/modules/macros/include.js +++ b/core/modules/macros/include.js @@ -16,19 +16,33 @@ exports.info = { name: "include", params: { filter: {byPos: 0, type: "filter"}, - as: {byPos: 1, as: "text"}, - shadow: {byPos: 2, as: "text"} + as: {byPos: 1, type: "text"}, + shadow: {byPos: 2, type: "text"}, + removePrefix: {byName: true, type: "text"} } }; exports.executeMacro = function() { var as = this.params.as || "text/plain", - wiki = this.hasParameter("shadow") ? this.wiki.shadows : this.wiki; + wiki = this.hasParameter("shadow") ? this.wiki.shadows : this.wiki, + t; if(this.hasParameter("filter")) { var titles = wiki.filterTiddlers(this.params.filter), result = []; - for(var t=0; t