diff --git a/core/modules/widgets/wikify.js b/core/modules/widgets/wikify.js index 3c99c8e5c..853ebff1b 100644 --- a/core/modules/widgets/wikify.js +++ b/core/modules/widgets/wikify.js @@ -71,6 +71,9 @@ WikifyWidget.prototype.getResult = function() { case "text": result = this.wikifyContainer.textContent; break; + case "formattedtext": + result = this.wikifyContainer.formattedTextContent; + break; case "html": result = this.wikifyContainer.innerHTML; break; diff --git a/editions/tw5.com/tiddlers/widgets/WikifyWidget.tid b/editions/tw5.com/tiddlers/widgets/WikifyWidget.tid index 5b9670e49..b058587fa 100644 --- a/editions/tw5.com/tiddlers/widgets/WikifyWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/WikifyWidget.tid @@ -1,8 +1,9 @@ -title: WikifyWidget -created: 20160321144949700 -modified: 20160321144949700 -tags: Widgets caption: wikify +created: 20160321144949700 +modified: 20161017122117062 +tags: Widgets +title: WikifyWidget +type: text/vnd.tiddlywiki ! Introduction @@ -23,6 +24,7 @@ The available output types are: |!Keyword |!Description | |text |Return the plain text of the rendered output (ie HTML tags are omitted) | +|formattedtext |Return the plain text with simple text formatting of the rendered output (ie HTML tags are omitted) | |html |Return the rendered HTML of the output | |parsetree |Return a formatted JSON representation of the parse tree | |widgettree |Return a formatted JSON representation of the widget tree |