This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

WikifyWidget

 22nd January 2022 at 7:15pm

Introduction

The wikify widget parses and renders a string of text and assigns the result to a specified variable. The new value of the variable is available to the content within the wikify widget.

Content and Attributes

The content of the <$wikify> widget is the scope for the value assigned to the variable.

AttributeDescription
nameThe name of the variable to assign
textThe text to parse and render
typeThe ContentType of the text (defaults to text/vnd.tiddlywiki)
modeThe parse mode: block (the default) or inline
outputKeyword indicating the desired output type, defaulting to text (see below)

The available output types are:

KeywordDescription
textReturn the plain text of the rendered output (ie HTML tags are omitted)
formattedtextReturn the plain text with simple text formatting of the rendered output (ie HTML tags are omitted)
htmlReturn the rendered HTML of the output
parsetreeReturn a formatted JSON representation of the parse tree
widgettreeReturn a formatted JSON representation of the widget tree