diff --git a/rabbithole/core/modules/wiki.js b/rabbithole/core/modules/wiki.js index 0d4e34f64..fe1b366af 100644 --- a/rabbithole/core/modules/wiki.js +++ b/rabbithole/core/modules/wiki.js @@ -262,11 +262,17 @@ Options are: defaultType: Default MIME type to use if the specified one is unknown */ exports.renderText = function(outputType,textType,text,options) { - var renderer = this.parseText(type,text,options); + var renderer = this.parseText(textType,text,options); renderer.execute([]); return renderer.render(outputType); }; +exports.renderTiddler = function(outputType,title) { + var renderer = this.parseTiddler(title); + renderer.execute([],title); + return renderer.render(outputType); +}; + /* Install macro plugins into this wiki moduleType: Plugin type to install (defaults to "macro")