In these two recent examples, you are not concatenating anything. So
everything works. In your first post, your macro was attempting to
concatenate.
Try rewriting *colorful* like this:
\define colorful(param1)
<$vars cls="$param1$">
<$wikify text=<<_split-fade-In-class>> name=joinme>
<span class=<<joinme>> >
This is test
</span>
</$wikify>
</$vars>
\end
In my test, when I inspect "This is a test", it now shows classes
"mr-fadeIn-redcls mr-fadeIn-bluecls".
Good luck!
-- Mark
On Sunday, November 18, 2018 at 11:51:39 AM UTC-8, Mohammad wrote:
>
> This is another version!
>
> \define fin() $(cls)$ mr-contents
> \define m1(p)
> <$set name=cls filter="$p$ +[splitbefore[ ]] +[addprefix[mr-fadeIn-]]">
> <span class=<<fin>> > This is a test </span>
> </$set>
> \end
> <style>
> .mr-fadeIn-red{color:red;}
> .mr-fadeIn-yellow{background-color:#dadada;}
> .mr-contents{border:1px solid blue;padding:5px;}
> </style>
>
> <<m1 "red yellow">>
>
> Best
> 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/18b4cd65-fcaf-475b-a0a3-1cb5620fe302%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.