The problem here is the change that was made in alpha.15 to fix the problem
with wikitext in tiddler titles:

https://github.com/Jermolene/TiddlyWiki5/commit/f380d4b27db7b4cc80d3933c5f55d16a6539ee3a

Before the change, when an attribute was bound to a macro the macro would
be wikified (after parameter expansion). After the change, wikification
didn't take place. There is now therefore an inconsistency (which you noted
in another message) whereby a freestanding macro does get wikified, but one
bound to an attribute does not.

We do have control over how a freestanding macro call is treated. Instead
of using the <<macroCall>> syntax, one can use the <$macrocall> widget,
which allows the $type attribute to be set to the control the
interpretation of the content of the macro variable, and the $output
attribute to control the type of the rendered output.

So, I think we need to modify the syntax for macro-bound attributes so that
it is possible to control whether the text is wikified or not. There is
exactly the same problem for transclusion, too, where it would sometimes be
useful to be able to transclude without wikifying.

The easiest way to control this would be to be able to specify the content
type that should be used to interpret the macro. Text/plain would return
the text straight after parameter expansion, while text/vnd.tiddlywiki
would return the wikified text.

One possibility is:

\define myMacro(param,param2) as text/vnd.tiddlywiki
the text of the macro
\end

But that's not enough, because one would also want to be able to control
the rendering of variables that were created with the <$set> widget, or the
<$list> widget.

Another possibility might be to extend the macro call syntax like this:

<<myMacro:text/plain param1 param2:"Something">>

<<myMacro:text/plain->text/plain param1 param2:"Something">>

<<myMacro:text/vnd.tiddlywiki->text/plain param1 param2:"Something">>

The idea would be that the type after the colon would be the type of the
macro text, and the type after the arrow would be the type of the output.

Best wishes

Jeremy




On Mon, Dec 2, 2013 at 1:15 PM, Stephan Hradek <[email protected]>wrote:

> Hi Jeremy!
>
> Maybe you already saw
> https://groups.google.com/forum/#!topic/tiddlywiki/-0T5a5eD-Pc
>
> Now please compare α17 "linktest" tiddler on
> http://skeeve.tiddlyspot.com#linktest with α15 on
> http://tw5magick.tiddlyspot.com#linktest
>
> On 15 it works, on 17 it fails.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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 http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to