Hi Mohammad

> On 2 Mar 2019, at 20:23, Jeremy Ruston <[email protected]> wrote:
> 
> I’m afraid that goes back to something we’ve discussed before: there isn’t a 
> way to get the results of a macrocall widget into a variable without 
> wikification:

Of course, I gave up too early. Here’s a method that works in the cases I’ve 
tried:

<$wikify name="output" text="""<$macrocall $type="text/plain" 
$name="dumpvariables"/>""">
<$text text=<<output>>/>
</$wikify>

The trick is to use the “type” attribute of the macrocall widget. It causes it 
to interpret the text as plain text, rather than wikitext. However, if you try 
<$macrocall $type="text/plain" $name="dumpvariables"/> on it’s own you’ll see 
that it puts the text in a plain text block (like triple backticks). The wikify 
widget lets us extract the plain text from that output.

Best wishes

Jeremy.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/938D543F-CBC5-4E4D-A551-74223EC7FD13%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to