I forgot case #4, I'll finish it up: The filter sees:
"[[a b]] +[addprefix[mr-fadeIn-]]" "[[a b]]" looks like a single tiddler with title "a b", and the macro performs the prefix: mr-fadeIn-a b -- Mark On Friday, January 11, 2019 at 6:51:53 AM UTC-8, Mark S. wrote: > > #1 Works as expected > > > #2 The filter sees: > > > "a b +[addprefix[mr-fadeIn-]]" > > > So thus two outputs. > > > #3 Wikitext is not a cannibal. It does not eat other wikitext! ;-) The > text is rendered as a link and then passed. The rendering html code is > stripped and it becomes like case #2. That's my theory and I'm sticking to > it. > > > -- Mark > > On Friday, January 11, 2019 at 3:48:22 AM UTC-8, Mohammad wrote: >> >> Consider the below macro >> >> \define mac(p) >> <$set name=cls filter="$p$ +[addprefix[mr-fadeIn-]]"> >> <$text text=<<cls>> /> >> </$set> >> \end >> >> It accepts p as input parameter and adds the prefix mr-fadeIn- and >> return it. >> >> Now consider the below examples >> >> <<mac "ab">> >> >> <<mac "a b">> >> >> <<mac [[a b]]>> >> >> <<mac "[[a b]]">> >> >> and their out puts >> >> >> >> mr-fadeIn-ab >> >> mr-fadeIn-a mr-fadeIn-b >> >> mr-fadeIn-a mr-fadeIn-b >> >> [[mr-fadeIn-a b]] >> >> >> I do not understand the difference. I expect the first three example just >> append the mr-fadeIn- to begining the argument (parameter)! But filter >> seems split them on SPACE. >> >> >> --Mohammad >> >> >> >> >> >> >> -- 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/1b328547-db4c-46c6-9b43-a3393d51b9fb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

