Hi Jeremy!
I started to use this macro, which I adopted from your example:
\define Comment(text)
<$button class="note" popup="$:/state/Comments"><img src=
"data:image/gif;base64,R0lGODdhEAAQAIACAAAAAOroMSwAAAAAEAAQAAACFYyPqcutAKN0tCYJrN4HRw5eWEiGBQA7"
/></$button>
<$reveal type="nomatch" text="" default="" state="$:/state/Comments"
animate="yes">
<div class="Comments">$text$</div>
</$reveal>
\end
It is called like this:
<<Comment
"I don't see the [[advantage]] here for obvious reason:
* Doesn't fit
* Awful color"
>>
(example on skeeve.tiddlyspot.com)
Of course the "*" don't render as a bulleted list, while o.t.o.h.
[[advantage]] does link to a tiddler.
Is there any (easy) way to be able to reveal wikitext? Or is there any way
to supply wikitext to a macro?
If not, maybe this would be a way to achieve it?
<<Comment>>
I don't see the [[advantage]] here for obvious reason:
* Doesn't fit
* Awful color
<</Comment>>
A macro should then be able to access the content somehow, like, for
example:
\define Comment()
<$button class="note" popup="$:/state/Comments"><img src=
"data:image/gif;base64,R0lGODdhEAAQAIACAAAAAOroMSwAAAAAEAAQAAACFYyPqcutAKN0tCYJrN4HRw5eWEiGBQA7"
/></$button>
<$reveal type="nomatch" text="" default="" state="$:/state/Comments"
animate="yes">
<div class="Comments">$_CONTENT_$</div>
</$reveal>
\end
Where "$_CONTENT_$" would then be the formatted (wikified) HTML content.
But I think this would require current macros to be written like this:
<<Macro "with" "parameter" */*>>
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.