@si
Try this:
\define context()
<b>
<small>
<$list filter="[<currentTiddler>get-stream-root[]addsuffix[: ]]
[<currentTiddler>get-stream-root:includeall[]!search[<<*>>]rest[1]butlast[2]get[text]addsuffix[:
]]
[<currentTiddler>get-stream-root:includeall[]!search[<<*>>]butlast[1]last[]get[text]]"
variable="x">
<<x>>
</$list>
</small>
</b>
<br><br>
\end
Throw in an extra line break before and after <<x>> if you need it in block
mode.
Alternatively if you really want to use the triple brace syntax:
{{{ filter || template }}}
Where template is a tiddler that just contains:
<<currentTiddler>>
On Wednesday, July 7, 2021 at 8:35:56 PM UTC+2 Si wrote:
> Hi Charlie.
>
> >>> Me thinks we are going to need to see the macro and/or a description
> of what you're trying to do.
>
> To be honest I don't think it is that relevant: the simplest way to
> display the filter {{{ [[`test`]] }}} with wikitext formatting (and not
> as a link) is all I want to know.
>
> The macro I am actually using is very messy, but here it is:
>
> \define context()
> <b>
> <small>
> {{{
> [<currentTiddler>get-stream-root[]addsuffix[: ]]
>
> [<currentTiddler>get-stream-root:includeall[]!search[<<*>>]rest[1]butlast[2]get[text]addsuffix[:
>
> ]]
>
> [<currentTiddler>get-stream-root:includeall[]!search[<<*>>]butlast[1]last[]get[text]]
> }}}
> </small>
> </b>
> <br><br>
> \end
>
> Edit: I pasted the wrong thing so deleted my previous message.
> On Wednesday, 7 July 2021 at 18:14:52 UTC+1 [email protected] wrote:
>
>> Me thinks we are going to need to see the macro and/or a description of
>> what you're trying to do.
>>
>> On Wednesday, July 7, 2021 at 1:07:09 PM UTC-3 Si wrote:
>>
>>> Hi Eric, thanks for your reply.
>>>
>>> That doesn't seem to work for me? Adding the filtered transclusion
>>> directly gives me the 'literal' text as a link.
>>>
>>> Even when I try it if I try something like this: {{{ [[`test`]] }}}.
>>> This just displays `test`, but as a link.
>>>
>>> On Wednesday, 7 July 2021 at 16:56:54 UTC+1 Eric Shulman wrote:
>>>
>>>> On Wednesday, July 7, 2021 at 8:43:11 AM UTC-7 Si wrote:
>>>>
>>>>> I have a macro where I use the $text widget where the "text"
>>>>> attribute is a filtered transclusion (i.e. {{{ [myfilter] }}} ).
>>>>> I've noticed that occasionally [myfilter] produces something
>>>>> containing markup, which obviously gets rendered as plain text.
>>>>> E.g. <$text text={{{ [myfilter] }}}/> might output A __sentence__
>>>>> with ''formatting''.
>>>>> Is there some equivalent of the $text widget that will output the
>>>>> text with the formatting applied?
>>>>>
>>>>
>>>> Don't use the $text widget. Just put the filtered transclusion
>>>> directly in your wikitext, e.g.,
>>>> {{{ [myfilter] }}}
>>>>
>>>> By default, the transcluded content will be "wikified", which will
>>>> automatically process any formatting syntax.
>>>>
>>>> enjoy,
>>>> -e
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/495f70d4-f748-4f2c-bedb-d84959dd7c08n%40googlegroups.com.