How to set the format of a <$view > to wiki in tiddlywiki?

1.6k Views Asked by At

In my tiddler, I have the following field:

  • name : my_field
  • value : [[Some Page I Want To Link To]]

Then, in the same tiddler, I use the following ViewWidget to see the content of the file:

<$view field="my_field" />

The problem is that the rendered text is not wikified, and thus, there is no link despite me having wrapped the name with [[ and ]].

How can I do to have my text rendered as a proper link?

Note: Removing the spaces is not an option.

P.S.: Of course, I tried the documentation, that is:

... including changing the format, etc., but to no avail.

2

There are 2 best solutions below

2
On

The solution is to use the transclude widget, instead of the view widget:

<$transclude field="my_field" />
1
On

If your field my_field has the value: Some Page I Want To Link To

Then use:

<$link to={{!!my_field}} >{{!!my_field}}
</$link>