The editor preview is also rendering it as a wiki tiddler, not as code. I
can live with that, but I was hoping there'd be a fundamental "and here is
how you render this type of tiddler" way.
Still, it's incredible how flexible TW is!
Cheers,
Gabriel
On Saturday, April 1, 2023 at 8:35:59 PM UTC+2 Gabriel Montagné
Láscaris-Comneno wrote:
> Wonderful :-) Thanks a lot!
>
> On Saturday, April 1, 2023 at 8:29:50 PM UTC+2 Eric Shulman wrote:
>
>> Instead of using simple transclusion (i.e., `{{TiddlerTitle}}`) use the
>> `$codeblock` widget, like this:
>> `<$codeblock code={{TiddlerTitle}}/>`
>>
>>
>> On Saturday, April 1, 2023 at 11:08:53 AM UTC-7 [email protected] wrote:
>>
>>> Interestingly, when I transclude the node, it's still rendered as a wiki
>>> tiddler, not as code. I wonder, Eric, if, from the top of your head, you'd
>>> know how to work around that?
>>> Thanks again, Gabriel
>>>
>>> On Saturday, April 1, 2023 at 8:02:29 PM UTC+2 Gabriel Montagné
>>> Láscaris-Comneno wrote:
>>>
>>>> Amazing Eric! Worked perfectly. And thanks for the link and
>>>> explanation! I'll use the Discourse server for these type of questions
>>>> going forward.
>>>> Again, 1000 thanks!
>>>> Cheers,
>>>> Gabriel
>>>>
>>>> On Saturday, April 1, 2023 at 6:35:04 PM UTC+2 Eric Shulman wrote:
>>>>
>>>>> Addendum:
>>>>>
>>>>> Instead of
>>>>>
>>>>> [type[text/x-fountain]then[$:/core/ui/ViewTemplate/body/rendered-plain-text]]
>>>>>
>>>>> your cascade definition should be:
>>>>> [type[text/x-fountain]then[$:/core/ui/ViewTemplate/body/code]]
>>>>>
>>>>> The difference is that the first definition will render embedded
>>>>> wikitext syntax,
>>>>> while the second definition simply displays the content as plain text
>>>>> without any other processing.
>>>>>
>>>>> -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/e9f697e0-603d-4fe8-8b20-7607863af1e3n%40googlegroups.com.