Plain text without formatting after: <$list filter=....

90 views
Skip to first unread message

vinvi...@gmail.com

unread,
Jan 7, 2021, 4:51:04 AM1/7/21
to TiddlyWiki
Hello,

\define LIST-DESCRIPTION() [[$(currentTiddler)$-description]]

<$list filter=<<LIST-DESCRIPTION>>>
{{!!text}}
</$list>


The above code works fine but shows the result in plain text. How can I prevent this?

Thank you,

Soren Bjornstad

unread,
Jan 7, 2021, 1:28:43 PM1/7/21
to TiddlyWiki
I tried copying and pasting this, and it does not show the result in plain text (bold, for instance, displays fine). I think what you're observing is that the transclusion is displaying in inline mode, which means that things like section headers and paragraph breaks won't show up.

To get it into block mode instead, put a blank line before and after {{!!text}}. Another option is to use the $transclude widget instead of {{!!text}}, which lets you explicitly specify whether you want it in block or inline mode:

<$list filter=<<LIST-DESCRIPTION>>>
  <$transclude mode="block"/>
</$list>

(See also https://tiddlywiki.com/#HTML%20in%20WikiText.)

vinvi...@gmail.com

unread,
Jan 7, 2021, 4:51:22 PM1/7/21
to TiddlyWiki
That's what I mean. :) 
Thank you, it works fine..

Op donderdag 7 januari 2021 om 19:28:43 UTC+1 schreef Soren Bjornstad:

TW Tones

unread,
Jan 7, 2021, 7:15:42 PM1/7/21
to TiddlyWiki
Vin..

Just so you know it is convention to use lowercase for variable names, perhaps this is another case where ALL CAPS is like shouting. I suggest using it sparingly.
I tend to use variable names that obey the ruled for fieldnames see because then they are always interchangeable. You can store a variables value in a matching field, or set a variable to a fields value.

 The filter you use is realy only setting the current tiddler; so try this

<$tiddler tiddler=<<LIST-DESCRIPTION>> >
<$transclude/> <!-- defaults to current tiddler add mode=block if needed -->
</$tiddler>

or
<$transclude tiddler=<<LIST-DESCRIPTION>>/>

vinvi...@gmail.com

unread,
Jan 9, 2021, 4:04:14 AM1/9/21
to TiddlyWiki
TW Tones..
 
ALL CAPS is like shouting..;
Okay, I'll keep that in mind

.. try this..;
Thank you,
Op vrijdag 8 januari 2021 om 01:15:42 UTC+1 schreef TW Tones:
Reply all
Reply to author
Forward
0 new messages